Ejemplo n.º 1
0
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)
Ejemplo n.º 3
0
 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()