Exemplo n.º 1
0
 def wait(self, entity):
     return Wait(
         entity, at_most=self.timeout, or_fail_with=self.hook_wait_failure
     )
Exemplo n.º 2
0
 def wait(self, entity):
     hook = self._inject_screenshot_and_page_source_pre_hooks(
         self.hook_wait_failure)
     return Wait(entity, at_most=self.timeout, or_fail_with=hook)
Exemplo n.º 3
0
def wait_for(entity, condition, timeout=4, polling=0.1):
    warnings.warn(
        'deprecated, use Wait(entity, at_most=timeout).for_(condition)',
        DeprecationWarning)
    return Wait(entity, at_most=timeout).for_(condition)