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

Method wait_for_class_to_equal

dash/testing/browser.py:337–345  ·  view source on GitHub ↗

Explicit wait until the element's class has expected `value` timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `class_to_equal` condition.

(self, selector, classname, timeout=None)

Source from the content-addressed store, hash-verified

335 )
336
337 def wait_for_class_to_equal(self, selector, classname, timeout=None):
338 """Explicit wait until the element's class has expected `value` timeout
339 if not set, equals to the fixture's `wait_timeout` shortcut to
340 `WebDriverWait` with customized `class_to_equal` condition."""
341 return self._wait_for(
342 method=class_to_equal(selector, classname),
343 timeout=timeout,
344 msg=f"classname => {classname} not found within {timeout or self._wait_timeout}s",
345 )
346
347 def wait_for_style_to_equal(self, selector, style, val, timeout=None):
348 """Explicit wait until the element's style has expected `value` timeout

Calls 2

_wait_forMethod · 0.95
class_to_equalClass · 0.90