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 ff66dcd commit 947d4d0Copy full SHA for 947d4d0
dash/testing/wait.py
@@ -1,5 +1,6 @@
1
# pylint: disable=too-few-public-methods
2
"""Utils methods for pytest-dash such wait_for wrappers."""
3
+
4
import time
5
import logging
6
from selenium.common.exceptions import WebDriverException
@@ -108,7 +109,9 @@ def __call__(self, driver):
108
109
elem = self._get_element(driver)
110
logger.debug("text to equal {%s} => expected %s", elem.text, self.text)
111
value = elem.get_attribute("value")
- return str(elem.text) == self.text or (value is not None and str(value) == self.text)
112
+ return str(elem.text) == self.text or (
113
+ value is not None and str(value) == self.text
114
+ )
115
except WebDriverException:
116
return False
117
0 commit comments