def wait(self, entity): return Wait( entity, at_most=self.timeout, or_fail_with=self.hook_wait_failure )
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)
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)