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

Method wait_for_contains_class

dash/testing/browser.py:372–383  ·  view source on GitHub ↗

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

(self, selector, classname, timeout=None)

Source from the content-addressed store, hash-verified

370 )
371
372 def wait_for_contains_class(self, selector, classname, timeout=None):
373 """Explicit wait until the element's classes contains the expected `classname`.
374
375 timeout if not set, equals to the fixture's `wait_timeout`
376 shortcut to `WebDriverWait` with customized `contains_class`
377 condition.
378 """
379 return self._wait_for(
380 method=contains_class(selector, classname),
381 timeout=timeout,
382 msg=f"classname -> {classname} not found inside element within {timeout or self._wait_timeout}s",
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`.

Callers

nothing calls this directly

Calls 2

_wait_forMethod · 0.95
contains_classClass · 0.90

Tested by

no test coverage detected