Skip to content

Commit 77fe391

Browse files
committed
swap inclusion
1 parent a0adee6 commit 77fe391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/testing/wait.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def __call__(self, driver):
6464
elem = driver.find_element(By.CSS_SELECTOR, self.selector)
6565
logger.debug("contains text {%s} => expected %s", elem.text, self.text)
6666
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
67+
return self.text in str(elem.text) or (
68+
value is not None and self.text in str(value)
6969
)
7070
except WebDriverException:
7171
return False

0 commit comments

Comments
 (0)