Skip to content

Commit ab5c412

Browse files
committed
Add a retry if "ERR_NAME_NOT_RESOLVED" on URL open
1 parent ae19caa commit ab5c412

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def open(self, url):
248248
"ERR_CONNECTION_TIMED_OUT" in e.msg
249249
or "ERR_CONNECTION_CLOSED" in e.msg
250250
or "ERR_CONNECTION_RESET" in e.msg
251+
or "ERR_NAME_NOT_RESOLVED" in e.msg
251252
):
252253
time.sleep(0.5)
253254
self.driver.get(url)

0 commit comments

Comments
 (0)