JavascriptException Stale element not found after (multiple) redirects
I’m building a SeleniumBase scraper that takes a set of tasks and performs them on a website. After performing some actions on the site the script calls driver.execute_script("return window.variable;")
. This works fine on all domains I’ve scraped even with any redirects after clicks.
how to handle shadow dom
it was working and click on the verify you are human in the CF ‘Under Attack’ and the CF Captcha,
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 300.000
File “C:UsersAdministratorDownloadsutilstabs_setup.py”, line 19, in open_windows driver.execute_script(f”window.open(‘{url}’);”) File “C:UsersAdministratorAppDataLocalProgramsPythonPython311Libsite-packagesseleniumwebdriverremotewebdriver.py”, line 407, in execute_script return self.execute(command, {“script”: script, “args”: converted_args})[“value”] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersAdministratorAppDataLocalProgramsPythonPython311Libsite-packagesseleniumwebdriverremotewebdriver.py”, line 347, in execute self.error_handler.check_response(response) File “C:UsersAdministratorAppDataLocalProgramsPythonPython311Libsite-packagesseleniumwebdriverremoteerrorhandler.py”, line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 300.000 (Session info: chrome=124.0.6367.208) Stacktrace: GetHandleVerifier [0x00007FF7D6DF1502+60802] (No symbol) […]
Seleniumbase Driver how to find an element inside of an element
Python Code