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

Method submit

seleniumbase/fixtures/base_case.py:1185–1196  ·  view source on GitHub ↗

Alternative to self.driver.find_element_by_*(SELECTOR).submit()

(self, selector, by="css selector")

Source from the content-addressed store, hash-verified

1183 time.sleep(0.02)
1184
1185 def submit(self, selector, by="css selector"):
1186 """Alternative to self.driver.find_element_by_*(SELECTOR).submit()"""
1187 self.__check_scope()
1188 selector, by = self.__recalculate_selector(selector, by)
1189 if self.__is_cdp_swap_needed():
1190 self.cdp.submit(selector)
1191 return
1192 element = self.wait_for_element_clickable(
1193 selector, by=by, timeout=settings.SMALL_TIMEOUT
1194 )
1195 element.submit()
1196 self.__demo_mode_pause_if_active()
1197
1198 def clear(self, selector, by="css selector", timeout=None):
1199 """This method clears an element's text field.

Callers 3

send_keysFunction · 0.45
update_textFunction · 0.45
submitFunction · 0.45

Calls 5

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95

Tested by

no test coverage detected