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

Method message

dash/testing/wait.py:73–79  ·  view source on GitHub ↗
(self, driver)

Source from the content-addressed store, hash-verified

71 return False
72
73 def message(self, driver):
74 try:
75 element = self._get_element(driver)
76 text = "found: " + str(element.text) or str(element.get_attribute("value"))
77 except WebDriverException:
78 text = f"{self.selector} not found"
79 return f"text -> {self.text} not found inside element within {self.timeout}s, {text}"
80
81 def _get_element(self, driver):
82 return driver.find_element(By.CSS_SELECTOR, self.selector)

Callers 1

rFunction · 0.45

Calls 1

_get_elementMethod · 0.95

Tested by

no test coverage detected