Пример #1
0
 def wait(self, entity):
     return Wait(
         entity, at_most=self.timeout, or_fail_with=self.hook_wait_failure
     )
Пример #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)
Пример #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)