-
Notifications
You must be signed in to change notification settings - Fork 157
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
Script crashes after 1st iteration of views #23
Comments
Chang to send_bot function to this:
And change init fuction to this
|
^ This fixed the issue, thank you so much!!!!!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First iteration of views is working, 1000 views are send and then the code crashes with the bellow error. Is there a fix for this? Tnx
File "/ home/da/zefoy/main.py", line 106, in main self.send_bot(search_box, video_url_box, vid_info, div)
File "/home/da/zefoy/matn.py", line 124, in send bot self.driver.find_element ('xpath', send button). click()
File " home /da/ . Local/lib/python3.10/site-packages/selenium/webdriver /remot e/webdriver-py", line 861, in find_element
return self .execute (Command. FIND_ELEMENT, {"using": by, "value": value}) ["v alue"]
File " / home/da/.local/lib/python3.10/site-packages/selentum/webdriver/remot e/webdriver .py" line 444, in execute
self.error_ handler.check_response (response)
File " / home/da/.local/lib/python3.10/site-packages/selenium/webdriver/remot e/errorhandler-py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions. NoSuchElementException: Message: no such element: Un able to locate element: {"method": "xpath"
"selector":" /html/body/div[10]/div/di
v/div[1]/div/form/button" }
(Session info: chrome=114.0.5735.106)
Stacktrace:
#0 0×55d1adde74e3
#1 0x55d1adb16c76
#2 0x55d1adb52c96
#3 0x55d1adb52dc1
#4 0x55d1adb8c7f4
#5 0x55d1adb7203d
The text was updated successfully, but these errors were encountered: