MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / __shadow_clear

Method __shadow_clear

seleniumbase/fixtures/base_case.py:15294–15301  ·  view source on GitHub ↗
(self, selector, timeout)

Source from the content-addressed store, hash-verified

15292 self.wait_for_ready_state_complete()
15293
15294 def __shadow_clear(self, selector, timeout):
15295 element = self.__get_shadow_element(
15296 selector, timeout=timeout, must_be_visible=True
15297 )
15298 with suppress(Exception):
15299 element.clear()
15300 backspaces = Keys.BACK_SPACE * 42 # Autofill Defense
15301 element.send_keys(backspaces)
15302
15303 def __get_shadow_text(self, selector, timeout):
15304 element = self.__get_shadow_element(

Callers 1

clearMethod · 0.95

Calls 3

__get_shadow_elementMethod · 0.95
clearMethod · 0.45
send_keysMethod · 0.45

Tested by

no test coverage detected