Skip to content

Commit c7ca8da

Browse files
committed
Improve reliability of "self.set_value()"
1 parent a6c34e4 commit c7ca8da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,6 +4093,8 @@ def set_value(self, selector, text, by=By.CSS_SELECTOR, timeout=None):
40934093
if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:
40944094
timeout = self.__get_new_timeout(timeout)
40954095
selector, by = self.__recalculate_selector(selector, by, xp_ok=False)
4096+
self.wait_for_ready_state_complete()
4097+
self.wait_for_element_present(selector, by=by, timeout=timeout)
40964098
orginal_selector = selector
40974099
css_selector = self.convert_to_css_selector(selector, by=by)
40984100
self.__demo_mode_highlight_if_active(orginal_selector, by)

0 commit comments

Comments
 (0)