@@ -241,9 +241,13 @@ def open(self, url):
241
241
"cannot determine loading status" in e.msg
242
242
or "unexpected command response" in e.msg
243
243
):
244
- pass # Odd issue where the open did happen. Continue.
244
+ if self.__needs_minimum_wait():
245
+ time.sleep(0.2)
246
+ self.driver.get(url)
247
+ else:
248
+ pass # Odd issue where the open did happen. Continue.
245
249
else:
246
- raise Exception(e.msg)
250
+ raise
247
251
if self.driver.current_url == pre_action_url and pre_action_url != url:
248
252
time.sleep(0.1) # Make sure load happens
249
253
if settings.WAIT_FOR_RSC_ON_PAGE_LOADS:
@@ -702,7 +706,7 @@ def update_text(
702
706
):
703
707
pass # Odd issue where the click did happen. Continue.
704
708
else:
705
- raise e
709
+ raise
706
710
if settings.WAIT_FOR_RSC_ON_PAGE_LOADS:
707
711
self.wait_for_ready_state_complete()
708
712
except (StaleElementReferenceException, ENI_Exception):
@@ -725,7 +729,7 @@ def update_text(
725
729
):
726
730
pass # Odd issue where the click did happen. Continue.
727
731
else:
728
- raise e
732
+ raise
729
733
if settings.WAIT_FOR_RSC_ON_PAGE_LOADS:
730
734
self.wait_for_ready_state_complete()
731
735
if self.__needs_minimum_wait():
@@ -2206,7 +2210,7 @@ def hover_on_element(self, selector, by="css selector"):
2206
2210
# (Pure hover actions won't work on early chromedriver versions)
2207
2211
try:
2208
2212
return page_actions.hover_on_element(self.driver, selector, by)
2209
- except WebDriverException as e :
2213
+ except WebDriverException:
2210
2214
driver_capabilities = self.driver.capabilities
2211
2215
if "version" in driver_capabilities:
2212
2216
chrome_version = driver_capabilities["version"]
@@ -2232,7 +2236,7 @@ def hover_on_element(self, selector, by="css selector"):
2232
2236
)
2233
2237
raise Exception(message)
2234
2238
else:
2235
- raise Exception(e)
2239
+ raise
2236
2240
2237
2241
def hover_and_click(
2238
2242
self,
@@ -11859,9 +11863,9 @@ def __click_with_offset(
11859
11863
"The offset must stay inside the target element!"
11860
11864
)
11861
11865
raise Exception(message)
11862
- except InvalidArgumentException as e :
11866
+ except InvalidArgumentException:
11863
11867
if not self.browser == "chrome":
11864
- raise Exception(e)
11868
+ raise
11865
11869
driver_capabilities = self.driver.capabilities
11866
11870
if "version" in driver_capabilities:
11867
11871
chrome_version = driver_capabilities["version"]
@@ -11876,7 +11880,7 @@ def __click_with_offset(
11876
11880
int(major_chromedriver_version) >= 76
11877
11881
and int(major_chrome_version) >= 76
11878
11882
):
11879
- raise Exception(e)
11883
+ raise
11880
11884
install_sb = (
11881
11885
"seleniumbase get chromedriver %s" % major_chrome_version
11882
11886
)
@@ -11893,7 +11897,7 @@ def __click_with_offset(
11893
11897
)
11894
11898
raise Exception(message)
11895
11899
else:
11896
- raise Exception(e)
11900
+ raise
11897
11901
if self.demo_mode:
11898
11902
self.__demo_mode_pause_if_active()
11899
11903
elif self.slow_mode:
0 commit comments