def predicate(_):
    elt = (element() if hasattr(element, '__call__') else element)
    return self._is_text_visible(elt, text)
def predicate(_):
    elt = (element() if hasattr(element, '__call__') else element)
    return self._is_text_visible(elt, text)