def wait_until(webdriver_condition, timeout=None, polling=None): if timeout is None: timeout = config.timeout if polling is None: polling = config.poll_during_waits return wait_for(get_driver(), webdriver_condition, timeout, polling)
def wait_until(self, element_condition, timeout=None, polling=None): if timeout is None: timeout = config.timeout if polling is None: polling = config.poll_during_waits return wait_for(self.find_element(), element_condition, timeout, polling)
def click(self): element = self.find_element() # Wait until element is enabled before clicking wait_for(element, be.enabled, config.timeout, config.poll_during_waits) element.click()