示例#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)