@@ -192,6 +192,11 @@ def open(self, url):
192
192
if "ERR_CONNECTION_TIMED_OUT" in e.msg:
193
193
time.sleep(0.5)
194
194
self.driver.get(url)
195
+ elif (
196
+ "cannot determine loading status" in e.msg
197
+ or "unexpected command response" in e.msg
198
+ ):
199
+ pass # Odd issue where the open did happen. Continue.
195
200
else:
196
201
raise Exception(e.msg)
197
202
if self.driver.current_url == pre_action_url and pre_action_url != url:
@@ -377,7 +382,10 @@ def click(
377
382
)
378
383
element.click()
379
384
except WebDriverException as e:
380
- if "cannot determine loading status" in e.msg:
385
+ if (
386
+ "cannot determine loading status" in e.msg
387
+ or "unexpected command response" in e.msg
388
+ ):
381
389
pass # Odd issue where the click did happen. Continue.
382
390
else:
383
391
self.wait_for_ready_state_complete()
@@ -603,7 +611,10 @@ def update_text(
603
611
try:
604
612
element.send_keys(Keys.RETURN)
605
613
except WebDriverException as e:
606
- if "cannot determine loading status" in e.msg:
614
+ if (
615
+ "cannot determine loading status" in e.msg
616
+ or "unexpected command response" in e.msg
617
+ ):
607
618
pass # Odd issue where the click did happen. Continue.
608
619
else:
609
620
raise e
@@ -623,7 +634,10 @@ def update_text(
623
634
try:
624
635
element.send_keys(Keys.RETURN)
625
636
except WebDriverException as e:
626
- if "cannot determine loading status" in e.msg:
637
+ if (
638
+ "cannot determine loading status" in e.msg
639
+ or "unexpected command response" in e.msg
640
+ ):
627
641
pass # Odd issue where the click did happen. Continue.
628
642
else:
629
643
raise e
0 commit comments