Skip to content

Commit d4f5b86

Browse files
authored
#10592: bugfix truthy checking a function type (#10596)
1 parent 5b84066 commit d4f5b86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def text_to_be_present_in_element_attribute(locator, attribute_, text_):
242242

243243
def _predicate(driver):
244244
try:
245-
if not element_attribute_to_include(locator, attribute_):
245+
if not element_attribute_to_include(locator, attribute_)(driver):
246246
return False
247247
element_text = driver.find_element(*locator).get_attribute(attribute_)
248248
return text_ in element_text

0 commit comments

Comments
 (0)