Skip to content

Commit 0989af9

Browse files
committed
Add pytest option to check for js errors on page loads
1 parent 0877608 commit 0989af9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ def pytest_addoption(parser):
125125
help="""Setting this overrides the default time that
126126
messenger notifications remain visible when reaching
127127
assert statements during Demo Mode.""")
128+
parser.addoption('--check_js', action="store_true",
129+
dest='js_checking_on',
130+
default=False,
131+
help="""The option to check for Javascript errors after
132+
every page load.""")
128133
parser.addoption('--ad_block', action="store_true",
129134
dest='ad_block_on',
130135
default=False,

0 commit comments

Comments
 (0)