Skip to content

Commit 762d48f

Browse files
committed
When checking for JS errors, give enough time for them to appear
1 parent fe99355 commit 762d48f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ def assert_no_js_errors(self):
18111811
* See https://github.com/SeleniumHQ/selenium/issues/1161
18121812
Based on the following Stack Overflow solution:
18131813
* https://stackoverflow.com/a/41150512/7058266 """
1814+
time.sleep(0.1) # May take a moment for errors to appear after loads.
18141815
try:
18151816
browser_logs = self.driver.get_log('browser')
18161817
except (ValueError, WebDriverException):

0 commit comments

Comments
 (0)