Skip to content

Commit

Permalink
Merge f67d501 into 1d16eb7
Browse files Browse the repository at this point in the history
  • Loading branch information
mshriver committed Nov 7, 2018
2 parents 1d16eb7 + f67d501 commit 8710abf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/widgetastic/widget/base.py
Expand Up @@ -483,13 +483,15 @@ def is_displayed(self):
return self.browser.is_displayed(self)

@logged()
def wait_displayed(self, timeout='10s'):
def wait_displayed(self, timeout='10s', delay=0.2):
"""Wait for the element to be displayed. Uses the :py:meth:`is_displayed`
Args:
timout: If you want, you can override the default timeout here
timeout: If you want, you can override the default timeout here
delay: override default delay for wait_for iterations
"""
wait_for(lambda: self.is_displayed, timeout=timeout, delay=0.2)
ret, _ = wait_for(lambda: self.is_displayed, timeout=timeout, delay=delay)
return ret

@logged()
def move_to(self):
Expand Down

0 comments on commit 8710abf

Please sign in to comment.