Skip to content

Commit 668c350

Browse files
committed
Add built-in sleep() method, which calls time.sleep()
1 parent b18981a commit 668c350

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,9 @@ def wait_for_angularjs(self, timeout=None, **kwargs):
16081608
timeout = self.__get_new_timeout(timeout)
16091609
js_utils.wait_for_angularjs(self.driver, timeout, **kwargs)
16101610

1611+
def sleep(self, seconds):
1612+
time.sleep(seconds)
1613+
16111614
def activate_jquery(self):
16121615
""" If "jQuery is not defined", use this method to activate it for use.
16131616
This happens because jQuery is not always defined on web sites. """

0 commit comments

Comments
 (0)