@@ -514,9 +514,6 @@ def update_text(
514
514
element .send_keys (Keys .RETURN )
515
515
if settings .WAIT_FOR_RSC_ON_PAGE_LOADS :
516
516
self .wait_for_ready_state_complete ()
517
- except Exception :
518
- exc_message = self .__get_improved_exception_message ()
519
- raise Exception (exc_message )
520
517
if (
521
518
retry
522
519
and element .get_attribute ("value" ) != text
@@ -574,9 +571,6 @@ def add_text(self, selector, text, by=By.CSS_SELECTOR, timeout=None):
574
571
element .send_keys (Keys .RETURN )
575
572
if settings .WAIT_FOR_RSC_ON_PAGE_LOADS :
576
573
self .wait_for_ready_state_complete ()
577
- except Exception :
578
- exc_message = self .__get_improved_exception_message ()
579
- raise Exception (exc_message )
580
574
if self .demo_mode :
581
575
if self .driver .current_url != pre_action_url :
582
576
self .__demo_mode_pause_if_active ()
@@ -4561,9 +4555,6 @@ def choose_file(
4561
4555
selector , by = by , timeout = timeout
4562
4556
)
4563
4557
element .send_keys (abs_path )
4564
- except Exception :
4565
- exc_message = self .__get_improved_exception_message ()
4566
- raise Exception (exc_message )
4567
4558
if self .demo_mode :
4568
4559
if self .driver .current_url != pre_action_url :
4569
4560
self .__demo_mode_pause_if_active ()
@@ -9535,30 +9526,6 @@ def __get_exception_message(self):
9535
9526
exc_message = sys .exc_info ()
9536
9527
return exc_message
9537
9528
9538
- def __get_improved_exception_message (self ):
9539
- """If Chromedriver is out-of-date, make it clear!
9540
- Given the high popularity of the following StackOverflow article:
9541
- https://stackoverflow.com/questions/49162667/unknown-error-
9542
- call-function-result-missing-value-for-selenium-send-keys-even
9543
- ... the original error message was not helpful. Tell people directly.
9544
- (Only expected when using driver.send_keys() with an old Chromedriver.)
9545
- """
9546
- exc_message = self .__get_exception_message ()
9547
- maybe_using_old_chromedriver = False
9548
- if "unknown error: call function result missing" in exc_message :
9549
- maybe_using_old_chromedriver = True
9550
- if self .browser == "chrome" and maybe_using_old_chromedriver :
9551
- update = (
9552
- "Your version of ChromeDriver may be out-of-date! "
9553
- "Please go to "
9554
- "https://sites.google.com/a/chromium.org/chromedriver/ "
9555
- "and download the latest version to your system PATH! "
9556
- "Or use: ``seleniumbase install chromedriver`` . "
9557
- "Original Exception Message: %s" % exc_message
9558
- )
9559
- exc_message = update
9560
- return exc_message
9561
-
9562
9529
def __add_deferred_assert_failure (self ):
9563
9530
""" Add a deferred_assert failure to a list for future processing. """
9564
9531
self .__check_scope ()
0 commit comments