Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELP ME PLEASE!! #3

Open
thanhtuvietnam opened this issue Sep 14, 2021 · 2 comments
Open

HELP ME PLEASE!! #3

thanhtuvietnam opened this issue Sep 14, 2021 · 2 comments

Comments

@thanhtuvietnam
Copy link

Exception has occurred: NoSuchElementException
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="main"]/div[2]/div/div[2]/div[3]/div[1]/div[1]/div[2]/div/div[1]/div/div/div/div/div/div/span"}
(Session info: chrome=93.0.4577.82)
File "C:\Users\ADMIN\Desktop\tiktok-autouploader\run.py", line 51, in upload
caption = bot.find_element_by_xpath(
File "C:\Users\ADMIN\Desktop\tiktok-autouploader\run.py", line 105, in
upload(r"C:\Users\ADMIN\Desktop\tiktok-autouploader\0.mp4")

@thanhtuvietnam
Copy link
Author

i use this (By.XPATH, '//*[@id="__next"]/div[@id="main"]/div[2]/div/div[2]/div[3]/div[6]/button[2]'))) and i did post video on tiktok but it doesn't type caption, can you help me

@botcoder-sys
Copy link

@thanhtuvietnam The xpath is updated. Kindly change it to proper xpath.
Use this instead
caption = bot.find_element_by_xpath(
'//*[@id="main"]/div[2]/div/div/div[2]/div[3]/div[1]/div[1]/div[1]/div[2]/div/div[1]/div/div/div/div/div/div')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants