Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 7dc85c7

Browse files
committed
Test: Add an implicit wait of 5 seconds for all Selenium operations.
1 parent 9babff2 commit 7dc85c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runestone/unittest_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ def setUp(self):
226226
# Use the shared module-wide driver.
227227
self.driver = mf.driver
228228
self.host = HOST_URL
229+
# Add an `implicit wait <https://selenium-python.readthedocs.io/waits.html#implicit-waits>`_.
230+
self.driver.implicitly_wait(5)
229231

230232
def tearDown(self):
231233
# Clear as much as possible, to present an almost-fresh instance of a browser for the next test. (Shutting down then starting up a browswer is very slow.)

0 commit comments

Comments
 (0)