Skip to content

Commit 19b7324

Browse files
committed
Update command-line parser for ad-blocking
1 parent b377594 commit 19b7324

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def pytest_addoption(parser):
324324
default=False,
325325
help="""The option to check for JavaScript errors after
326326
every page load.""")
327-
parser.addoption('--ad_block', '--ad-block',
327+
parser.addoption('--ad_block', '--ad-block', '--block_ads', '--block-ads',
328328
action="store_true",
329329
dest='ad_block_on',
330330
default=False,

seleniumbase/plugins/selenium_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def options(self, parser, env):
234234
help="""The option to check for JavaScript errors after
235235
every page load.""")
236236
parser.add_option(
237-
'--ad_block', '--ad-block',
237+
'--ad_block', '--ad-block', '--block_ads', '--block-ads',
238238
action="store_true",
239239
dest='ad_block_on',
240240
default=False,

0 commit comments

Comments
 (0)