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

Method wait_for_style_to_equal

dash/testing/browser.py:347–355  ·  view source on GitHub ↗

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

(self, selector, style, val, timeout=None)

Source from the content-addressed store, hash-verified

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
349 if not set, equals to the fixture's `wait_timeout` shortcut to
350 `WebDriverWait` with customized `style_to_equal` condition."""
351 return self._wait_for(
352 method=style_to_equal(selector, style, val),
353 timeout=timeout,
354 msg=f"style val => {style} {val} not found within {timeout or self._wait_timeout}s",
355 )
356
357 def wait_for_text_to_equal(self, selector, text, timeout=None):
358 """Explicit wait until the element's text equals the expected `text`.

Calls 2

_wait_forMethod · 0.95
style_to_equalClass · 0.90