@@ -192,6 +192,11 @@ def open(self, url):
192192 if "ERR_CONNECTION_TIMED_OUT" in e.msg:
193193 time.sleep(0.5)
194194 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.
195200 else:
196201 raise Exception(e.msg)
197202 if self.driver.current_url == pre_action_url and pre_action_url != url:
@@ -377,7 +382,10 @@ def click(
377382 )
378383 element.click()
379384 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+ ):
381389 pass # Odd issue where the click did happen. Continue.
382390 else:
383391 self.wait_for_ready_state_complete()
@@ -603,7 +611,10 @@ def update_text(
603611 try:
604612 element.send_keys(Keys.RETURN)
605613 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+ ):
607618 pass # Odd issue where the click did happen. Continue.
608619 else:
609620 raise e
@@ -623,7 +634,10 @@ def update_text(
623634 try:
624635 element.send_keys(Keys.RETURN)
625636 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+ ):
627641 pass # Odd issue where the click did happen. Continue.
628642 else:
629643 raise e
0 commit comments