Skip to content

Commit 30eafb0

Browse files
committed
Improve documentation around passing browser args
1 parent 7090f90 commit 30eafb0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ The code above will leave your browser window open in case there's a failure. (i
385385
--agent=STRING # (Modify the web browser's User-Agent string.)
386386
--mobile # (Use the mobile device emulator while running tests.)
387387
--metrics=STRING # (Set mobile metrics: "CSSWidth,CSSHeight,PixelRatio".)
388-
--chromium-arg=ARG # (Add a Chromium arg for Chrome/Edge, comma-separated.)
389-
--firefox-arg=ARG # (Add a Firefox arg for Firefox, comma-separated.)
388+
--chromium-arg="ARG=N,ARG2" # (Set Chromium args, ","-separated, no spaces.)
389+
--firefox-arg="ARG=N,ARG2" # (Set Firefox args, comma-separated, no spaces.)
390390
--firefox-pref=SET # (Set a Firefox preference:value set, comma-separated.)
391391
--extension-zip=ZIP # (Load a Chrome Extension .zip|.crx, comma-separated.)
392392
--extension-dir=DIR # (Load a Chrome Extension directory, comma-separated.)

help_docs/customizing_test_runs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ pytest my_first_test.py --settings-file=custom_settings.py
123123
--agent=STRING # (Modify the web browser's User-Agent string.)
124124
--mobile # (Use the mobile device emulator while running tests.)
125125
--metrics=STRING # (Set mobile metrics: "CSSWidth,CSSHeight,PixelRatio".)
126-
--chromium-arg=ARG # (Add a Chromium arg for Chrome/Edge, comma-separated.)
127-
--firefox-arg=ARG # (Add a Firefox arg for Firefox, comma-separated.)
126+
--chromium-arg="ARG=N,ARG2" # (Set Chromium args, ","-separated, no spaces.)
127+
--firefox-arg="ARG=N,ARG2" # (Set Firefox args, comma-separated, no spaces.)
128128
--firefox-pref=SET # (Set a Firefox preference:value set, comma-separated.)
129129
--extension-zip=ZIP # (Load a Chrome Extension .zip|.crx, comma-separated.)
130130
--extension-dir=DIR # (Load a Chrome Extension directory, comma-separated.)

seleniumbase/plugins/pytest_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def pytest_addoption(parser):
4545
--agent=STRING (Modify the web browser's User-Agent string.)
4646
--mobile (Use the mobile device emulator while running tests.)
4747
--metrics=STRING (Set mobile metrics: "CSSWidth,CSSHeight,PixelRatio".)
48-
--chromium-arg=ARG (Add a Chromium arg for Chrome/Edge, comma-separated.)
49-
--firefox-arg=ARG (Add a Firefox arg for Firefox, comma-separated.)
48+
--chromium-arg="ARG=N,ARG2" (Set Chromium args, ","-separated, no spaces.)
49+
--firefox-arg="ARG=N,ARG2" (Set Firefox args, comma-separated, no spaces.)
5050
--firefox-pref=SET (Set a Firefox preference:value set, comma-separated.)
5151
--extension-zip=ZIP (Load a Chrome Extension .zip|.crx, comma-separated.)
5252
--extension-dir=DIR (Load a Chrome Extension directory, comma-separated.)

seleniumbase/plugins/selenium_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class SeleniumBrowser(Plugin):
2929
--agent=STRING (Modify the web browser's User-Agent string.)
3030
--mobile (Use the mobile device emulator while running tests.)
3131
--metrics=STRING (Set mobile metrics: "CSSWidth,CSSHeight,PixelRatio".)
32-
--chromium-arg=ARG (Add a Chromium arg for Chrome/Edge, comma-separated.)
33-
--firefox-arg=ARG (Add a Firefox arg for Firefox, comma-separated.)
32+
--chromium-arg="ARG=N,ARG2" (Set Chromium args, ","-separated, no spaces.)
33+
--firefox-arg="ARG=N,ARG2" (Set Firefox args, comma-separated, no spaces.)
3434
--firefox-pref=SET (Set a Firefox preference:value set, comma-separated.)
3535
--extension-zip=ZIP (Load a Chrome Extension .zip|.crx, comma-separated.)
3636
--extension-dir=DIR (Load a Chrome Extension directory, comma-separated.)

0 commit comments

Comments
 (0)