seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.67k stars 929 forks source link

Add "ERR_NAME_NOT_RESOLVED" to the list of errors that force a retry of driver.get(url) #1750

Closed mdmintz closed 1 year ago

mdmintz commented 1 year ago

Add ERR_NAME_NOT_RESOLVED to the list of errors that force a retry of driver.get(url)

Similar to ERR_CONNECTION_TIMED_OUT, ERR_CONNECTION_CLOSED, and ERR_CONNECTION_RESET, ERR_NAME_NOT_RESOLVED is one of those rare errors that may occur if the target website is having DNS issues, load-balancing issues, etc. A retry of driver.get(url) shortly after the error usually resolves the issue.


Here's the full list of errors that SeleniumBase is built to handle correctly (after this new addition):

mdmintz commented 1 year ago

This was released in 4.13.0 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.13.0