bugfix  truthy checking a function type
@@ -242,7 +242,7 @@ def text_to_be_present_in_element_attribute(locator, attribute_, text_):
def _predicate(driver):
try:
- if not element_attribute_to_include(locator, attribute_):
+ if not element_attribute_to_include(locator, attribute_)(driver):
return False
element_text = driver.find_element(*locator).get_attribute(attribute_)
return text_ in element_text
