Add a retry if "ERR_NAME_NOT_RESOLVED" on URL open

This commit is contained in:
Michael Mintz 2023-02-17 23:32:22 -05:00
parent ae19caadc8
commit ab5c4129a5
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ class BaseCase(unittest.TestCase):
"ERR_CONNECTION_TIMED_OUT" in e.msg
or "ERR_CONNECTION_CLOSED" in e.msg
or "ERR_CONNECTION_RESET" in e.msg
or "ERR_NAME_NOT_RESOLVED" in e.msg
):
time.sleep(0.5)
self.driver.get(url)