We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0adee6 commit 77fe391Copy full SHA for 77fe391
dash/testing/wait.py
@@ -64,8 +64,8 @@ def __call__(self, driver):
64
elem = driver.find_element(By.CSS_SELECTOR, self.selector)
65
logger.debug("contains text {%s} => expected %s", elem.text, self.text)
66
value = elem.get_attribute("value")
67
- return str(elem.text) in self.text or (
68
- value is not None and str(value) in self.text
+ return self.text in str(elem.text) or (
+ value is not None and self.text in str(value)
69
)
70
except WebDriverException:
71
return False
0 commit comments