You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/capabilities/ReadMe.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,14 @@ A regex parser was built into SeleniumBase to capture all lines from the specifi
50
50
``caps['KEY'] = False``
51
51
(Each pair must be on a separate line. You can interchange single and double quotes.)
52
52
53
-
You can also swap ``--browser=remote`` with an actual browser, eg ``--browser=chrome``, which will combine the default SeleniumBase desired capabilities with those that were specified in the capabilities file when using ``--cap_file=FILE.py``. Capabilities will override other parameters, so if you set the browser to one thing and the capabilities browser to another, SeleniumBase will use the capabilities browser as the browser. You'll need default SeleniumBase desired capabilities when using a proxy server (not the same as a Selenium Grid server), when downloading files to a desired folder, for disabling some warnings on Chrome, for overriding a website's Content Security Policy on Firefox, and for other reasons.
53
+
You can also swap ``--browser=remote`` with an actual browser, eg ``--browser=chrome``, which will combine the default SeleniumBase desired capabilities with those that were specified in the capabilities file when using ``--cap_file=FILE.py``. Capabilities will override other parameters, so if you set the browser to one thing and the capabilities browser to another, SeleniumBase will use the capabilities browser as the browser.
54
+
55
+
You'll need default SeleniumBase capabilities for:
56
+
* Using a proxy server (not the same as a Selenium Grid server)
57
+
* Downloading files to a desired folder
58
+
* Disabling some warnings on Chrome
59
+
* Overriding a website's Content Security Policy on Chrome
60
+
* Other possible reasons
54
61
55
62
You can also set browser desired capabilities from a command line string:
0 commit comments