MCPcopy Index your code
hub / github.com/seleniumbase/SeleniumBase / send_keys

Method send_keys

seleniumbase/fixtures/base_case.py:1124–1133  ·  view source on GitHub ↗

Same as self.add_text() Similar to update_text(), but won't clear the text field first.

(self, selector, text, by="css selector", timeout=None)

Source from the content-addressed store, hash-verified

1122 self.update_text(selector, text, by=by, timeout=timeout, retry=retry)
1123
1124 def send_keys(self, selector, text, by="css selector", timeout=None):
1125 """Same as self.add_text()
1126 Similar to update_text(), but won't clear the text field first."""
1127 self.__check_scope()
1128 if not timeout:
1129 timeout = settings.LARGE_TIMEOUT
1130 if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:
1131 timeout = self.__get_new_timeout(timeout)
1132 selector, by = self.__recalculate_selector(selector, by)
1133 self.add_text(selector, text, by=by, timeout=timeout)
1134
1135 def press_keys(self, selector, text, by="css selector", timeout=None):
1136 """Use send_keys() to press one key at a time."""

Callers 15

update_textMethod · 0.45
add_textMethod · 0.45
press_keysMethod · 0.45
clearMethod · 0.45
focusMethod · 0.45
press_up_arrowMethod · 0.45
press_down_arrowMethod · 0.45
press_left_arrowMethod · 0.45
press_right_arrowMethod · 0.45
choose_fileMethod · 0.45
set_valueMethod · 0.45
js_update_textMethod · 0.45

Calls 4

__check_scopeMethod · 0.95
__get_new_timeoutMethod · 0.95
add_textMethod · 0.95

Tested by

no test coverage detected