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

Method wait_for_element

dash/testing/browser.py:295–298  ·  view source on GitHub ↗

wait_for_element is shortcut to `wait_for_element_by_css_selector` timeout if not set, equals to the fixture's `wait_timeout`.

(self, selector, timeout=None)

Source from the content-addressed store, hash-verified

293 raise TimeoutException(str(message)) from err
294
295 def wait_for_element(self, selector, timeout=None):
296 """wait_for_element is shortcut to `wait_for_element_by_css_selector`
297 timeout if not set, equals to the fixture's `wait_timeout`."""
298 return self.wait_for_element_by_css_selector(selector, timeout)
299
300 def wait_for_element_by_css_selector(self, selector, timeout=None):
301 """Explicit wait until the element is present, timeout if not set,