undetected-chromedriver icon indicating copy to clipboard operation
undetected-chromedriver copied to clipboard

nodriver infinite wait on page load

Open bluemangofunk opened this issue 10 months ago • 2 comments

I have a custom extension to handle the proxy. If proxy is having issues, seems the

nodriver browser.get(...)

fails, but doesn't error, nor time out, checking the source, there is no timeout arg for the browser.get(...) call so not sure what can do to get out of this, as it will just wait forever

Any ideas?

Cheers

bluemangofunk avatar Apr 16 '24 14:04 bluemangofunk

use get combined with asyncio to allow adding a timeout for the operation like below: await asyncio.wait_for(browser.get(url), timeout=120)

Abdelrahman-Hekal avatar Apr 29 '24 13:04 Abdelrahman-Hekal

use get combined with asyncio to allow adding a timeout for the operation like below: await asyncio.wait_for(browser.get(url), timeout=120)

cheers, thank you very much. I'll try this out 👍

bluemangofunk avatar Apr 29 '24 15:04 bluemangofunk