Selenium Python - Advanced Patterns
What is the issue with this custom expected condition class?
class ElementClickable:
def __init__(self, locator):
self.locator = locator
def __call__(self, driver):
element = driver.find_element(self.locator)
return element.is_enabled() and element.is_displayed()