Skip to content

Commit 1d6f764

Browse files
committed
Update comments
1 parent a5f6e25 commit 1d6f764

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def _set_chrome_options(
117117
abs_path = os.path.abspath(user_data_dir)
118118
chrome_options.add_argument("user-data-dir=%s" % abs_path)
119119
if extension_zip:
120+
# Can be a comma-separated list of .ZIP or .CRX files
120121
extension_zip_list = extension_zip.split(',')
121122
for extension_zip_item in extension_zip_list:
122123
abs_path = os.path.abspath(extension_zip_item)

seleniumbase/plugins/pytest_plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,15 @@ def pytest_addoption(parser):
125125
dest='extension_zip',
126126
default=None,
127127
help="""Designates the Chrome Extension ZIP file to load.
128-
Format: A .zip file containing the Chrome extension.
128+
Format: A comma-separated list of .zip or .crx files
129+
containing the Chrome extensions to load.
129130
Default: None.""")
130131
parser.addoption('--extension_dir', action='store',
131132
dest='extension_dir',
132133
default=None,
133134
help="""Designates the Chrome Extension folder to load.
134135
Format: A directory containing the Chrome extension.
136+
(Can also be a comma-separated list of directories.)
135137
Default: None.""")
136138
parser.addoption('--headless', action="store_true",
137139
dest='headless',

seleniumbase/plugins/selenium_plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,16 @@ def options(self, parser, env):
100100
dest='extension_zip',
101101
default=None,
102102
help="""Designates the Chrome Extension ZIP file to load.
103-
Format: A .zip file containing the Chrome extension.
103+
Format: A comma-separated list of .zip or .crx files
104+
containing the Chrome extensions to load.
104105
Default: None.""")
105106
parser.add_option(
106107
'--extension_dir', action='store',
107108
dest='extension_dir',
108109
default=None,
109110
help="""Designates the Chrome Extension folder to load.
110111
Format: A directory containing the Chrome extension.
112+
(Can also be a comma-separated list of directories.)
111113
Default: None.""")
112114
parser.add_option(
113115
'--headless', action="store_true",

0 commit comments

Comments
 (0)