MCPcopy Index your code
hub / github.com/plotly/dash / multiple_click

Method multiple_click

dash/testing/browser.py:566–571  ·  view source on GitHub ↗

multiple_click click the element with number of `clicks`.

(self, elem_or_selector, clicks, delay=None)

Source from the content-addressed store, hash-verified

564 return sys.platform == "win32"
565
566 def multiple_click(self, elem_or_selector, clicks, delay=None):
567 """multiple_click click the element with number of `clicks`."""
568 for _ in range(clicks):
569 self._get_element(elem_or_selector).click()
570 if delay:
571 time.sleep(delay)
572
573 def clear_input(self, elem_or_selector):
574 """Simulate key press to clear the input."""

Calls 2

_get_elementMethod · 0.95
clickMethod · 0.45