Skip to content

Commit 33cf3db

Browse files
committed
Update the docs
1 parent 1b2eaec commit 33cf3db

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

examples/capabilities/ReadMe.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
You can specify browser desired capabilities for webdriver when running SeleniumBase tests on a remote SeleniumGrid server such as [BrowserStack](https://www.browserstack.com/automate/capabilities), [Sauce Labs](https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/), or [TestingBot](https://testingbot.com/support/other/test-options).
44

5-
A sample run command may look like this when run from the [SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) folder:
5+
Sample run commands may look like this when run from the [SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) folder: (The browser is now specified in the capabilities file.)
66

77
```bash
8-
pytest my_first_test.py --browser=remote --server=username:[email protected] --port=80 --cap_file=capabilities/sample_cap_file_BS.py
8+
pytest my_first_test.py --browser=remote --server=USERNAME:[email protected] --port=80 --cap_file=capabilities/sample_cap_file_BS.py
9+
```
10+
11+
```bash
12+
pytest my_first_test.py --browser=remote --server=USERNAME:[email protected] --port=80 --cap_file=capabilities/sample_cap_file_SL.py
913
```
1014

1115
(Parameters: ``--browser=remote``, ``--server=SERVER``, ``--port=PORT``, and ``--cap_file=CAP_FILE.py``)

help_docs/customizing_test_runs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ You can interchange **pytest** with **nosetests**, but using pytest is strongly
5252
Here's how to connect to a BrowserStack Selenium Grid server for running tests:
5353

5454
```bash
55-
pytest my_first_test.py --server=username:key@hub.browserstack.com --port=80
55+
pytest my_first_test.py --server=USERNAME:KEY@hub.browserstack.com --port=80
5656
```
5757

5858
Here's how to connect to a Sauce Labs Selenium Grid server for running tests:
5959

6060
```bash
61-
pytest my_first_test.py --server=username:key@ondemand.saucelabs.com --port=80
61+
pytest my_first_test.py --server=USERNAME:KEY@ondemand.saucelabs.com --port=80
6262
```
6363

6464
Here's how to connect to a TestingBot Selenium Grid server for running tests:
6565

6666
```bash
67-
pytest my_first_test.py --server=username:key@hub.testingbot.com --port=80
67+
pytest my_first_test.py --server=USERNAME:KEY@hub.testingbot.com --port=80
6868
```
6969

7070
Or you can create your own Selenium Grid for test distribution. ([See this ReadMe for details](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md))

0 commit comments

Comments
 (0)