Add a retry if "ERR_NAME_NOT_RESOLVED" on URL open
This commit is contained in:
parent
ae19caadc8
commit
ab5c4129a5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue