@@ -625,7 +625,7 @@ def update_text(
625
625
if self.__is_shadow_selector(selector):
626
626
self.__shadow_type(selector, text, timeout)
627
627
return
628
- element = self.wait_for_element_visible (
628
+ element = self.wait_for_element_clickable (
629
629
selector, by=by, timeout=timeout
630
630
)
631
631
self.__demo_mode_highlight_if_active(selector, by)
@@ -638,7 +638,7 @@ def update_text(
638
638
except (StaleElementReferenceException, ENI_Exception):
639
639
self.wait_for_ready_state_complete()
640
640
time.sleep(0.16)
641
- element = self.wait_for_element_visible (
641
+ element = self.wait_for_element_clickable (
642
642
selector, by=by, timeout=timeout
643
643
)
644
644
try:
@@ -672,7 +672,7 @@ def update_text(
672
672
except (StaleElementReferenceException, ENI_Exception):
673
673
self.wait_for_ready_state_complete()
674
674
time.sleep(0.16)
675
- element = self.wait_for_element_visible (
675
+ element = self.wait_for_element_clickable (
676
676
selector, by=by, timeout=timeout
677
677
)
678
678
element.clear()
@@ -2667,7 +2667,7 @@ def load_html_string(self, html_string, new_page=True):
2667
2667
"""Loads an HTML string into the web browser.
2668
2668
If new_page==True, the page will switch to: "data:text/html,"
2669
2669
If new_page==False, will load HTML into the current page."""
2670
- self.__check_scope ()
2670
+ self.wait_for_ready_state_complete ()
2671
2671
new_lines = []
2672
2672
lines = html_string.split("\n")
2673
2673
for line in lines:
@@ -12209,7 +12209,6 @@ def __click_with_offset(
12209
12209
):
12210
12210
from selenium.webdriver.common.action_chains import ActionChains
12211
12211
12212
- self.__check_scope()
12213
12212
if not timeout:
12214
12213
timeout = settings.SMALL_TIMEOUT
12215
12214
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
@@ -12224,6 +12223,7 @@ def __click_with_offset(
12224
12223
self.__slow_scroll_to_element(element)
12225
12224
else:
12226
12225
self.__scroll_to_element(element, selector, by)
12226
+ self.wait_for_ready_state_complete()
12227
12227
if self.demo_mode and mark is None:
12228
12228
mark = True
12229
12229
if mark:
0 commit comments