MCPcopy
hub / github.com/plotly/dash / wait_for_contains_text

Method wait_for_contains_text

dash/testing/browser.py:385–397  ·  view source on GitHub ↗

Explicit wait until the element's text contains the expected `text`. timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `contains_text` condition.

(self, selector, text, timeout=None)

Source from the content-addressed store, hash-verified

383 )
384
385 def wait_for_contains_text(self, selector, text, timeout=None):
386 """Explicit wait until the element's text contains the expected `text`.
387
388 timeout if not set, equals to the fixture's `wait_timeout`
389 shortcut to `WebDriverWait` with customized `contains_text`
390 condition.
391 """
392 method = contains_text(selector, text, timeout or self.wait_timeout)
393 return self._wait_for(
394 method=method,
395 timeout=timeout,
396 msg=method.message,
397 )
398
399 def wait_for_page(self, url=None, timeout=10):
400 """wait_for_page navigates to the url in webdriver wait until the

Calls 2

_wait_forMethod · 0.95
contains_textClass · 0.90