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 61d8a00 commit 11527ecCopy full SHA for 11527ec
py/selenium/webdriver/support/expected_conditions.py
@@ -428,7 +428,9 @@ def text_to_be_present_in_element_value(
428
def _predicate(driver: WebDriverOrWebElement):
429
try:
430
element_text = driver.find_element(*locator).get_attribute("value")
431
- return element_text is not None and text_ in element_text
+ if element_text is None:
432
+ return False
433
+ return text_ in element_text
434
except StaleElementReferenceException:
435
return False
436
0 commit comments