zefoy
zefoy copied to clipboard
Script crashes after 1st iteration of views
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