zefoy icon indicating copy to clipboard operation
zefoy copied to clipboard

Script crashes after 1st iteration of views

Open antsuca opened this issue 1 year ago • 2 comments

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 <Unknown> #3 0x55d1adb52dc1 #4 0x55d1adb8c7f4 #5 0x55d1adb7203d

antsuca avatar Jun 13 '23 04:06 antsuca