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

Function wait_for_text

seleniumbase/fixtures/page_actions.py:2088–2104  ·  view source on GitHub ↗
(
    driver,
    text,
    selector,
    by="css selector",
    timeout=settings.LARGE_TIMEOUT,
)

Source from the content-addressed store, hash-verified

2086
2087
2088def wait_for_text(
2089 driver,
2090 text,
2091 selector,
2092 by="css selector",
2093 timeout=settings.LARGE_TIMEOUT,
2094):
2095 selector, by = page_utils.recalculate_selector(selector, by)
2096 if __is_cdp_swap_needed(driver):
2097 return driver.cdp.find_element(selector)
2098 return wait_for_text_visible(
2099 driver=driver,
2100 text=text,
2101 selector=selector,
2102 by=by,
2103 timeout=timeout,
2104 )
2105
2106
2107def wait_for_exact_text(

Callers

nothing calls this directly

Calls 3

wait_for_text_visibleFunction · 0.85
__is_cdp_swap_neededFunction · 0.70
find_elementMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…