Update the docs

This commit is contained in:
Michael Mintz 2021-05-19 01:26:39 -04:00
parent 1abdf4ca7c
commit 139d090357
3 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,7 @@ joblib==1.0.1;python_version>="3.6"
Markdown==3.3.4;python_version>="3.6"
MarkupSafe==2.0.1;python_version>="3.6"
docutils==0.17.1
Jinja2==3.0.0;python_version>="3.6"
Jinja2==3.0.1;python_version>="3.6"
click==8.0.0
readme-renderer==29.0
pymdown-extensions==8.2

View File

@ -211,6 +211,12 @@ pytest my_first_test.py --server=USERNAME:KEY@hub.lambdatest.com --port=80
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))
To use a server on the ``https`` protocol, add ``--protocol=https``:
```bash
pytest test_suite.py --protocol=https --server=IP_ADDRESS --port=PORT
```
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="28" /> Example tests using Logging:</h3>
```bash

View File

@ -13,6 +13,7 @@ The following commands will work once you've installed seleniumbase.
```bash
seleniumbase download server
```
* (Required for using your own Selenium Grid)
<h4><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> Grid Hub server controls:</h4>
@ -20,6 +21,7 @@ seleniumbase download server
```bash
seleniumbase grid-hub {start|stop|restart} [OPTIONS]
```
<b>Options:</b>
<ul>
<li> -v / --verbose (Increases verbosity of logging output.)</li>
@ -31,6 +33,7 @@ seleniumbase grid-hub {start|stop|restart} [OPTIONS]
```bash
seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]
```
<b>Options:</b>
<ul>
<li> -v / --verbose (Increases verbosity of logging output.)</li>
@ -48,30 +51,41 @@ pytest test_suite.py --server=IP_ADDRESS --port=4444
You can also run your tests on someone else's Selenium Grid to avoid managing your own. Here are some Selenium Grids that you can use (and the run command format):
* [BrowserStack](https://www.browserstack.com/automate#) Selenium Grid:
```bash
pytest my_first_test.py --server=USERNAME:KEY@hub.browserstack.com --port=80
```
* [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) Selenium Grid:
```bash
pytest my_first_test.py --server=USERNAME:KEY@ondemand.saucelabs.com --port=80
```
* [TestingBot](https://testingbot.com/features) Selenium Grid:
```bash
pytest my_first_test.py --server=USERNAME:KEY@hub.testingbot.com --port=80
```
* [CrossBrowserTesting](https://help.crossbrowsertesting.com/selenium-testing/getting-started/python/) Selenium Grid:
```bash
pytest my_first_test.py --server=USERNAME:KEY@hub.crossbrowsertesting.com --port=80
```
* [LambdaTest](https://www.lambdatest.com/selenium-automation) Selenium Grid:
```bash
pytest my_first_test.py --server=USERNAME:KEY@hub.lambdatest.com --port=80
```
To use a server on the ``https`` protocol, add ``--protocol=https``:
```bash
pytest test_suite.py --protocol=https --server=IP_ADDRESS --port=PORT
```
(For setting browser desired capabilities while running Selenium remotely, see the <a href="https://seleniumbase.io/help_docs/desired_capabilities/">desired capabilities documentation</a> and the sample files located in <a href="https://github.com/seleniumbase/SeleniumBase/tree/master/examples/capabilities">SeleniumBase/examples/capabilities</a>)
<h4><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> More info about the Selenium Grid Hub can be found here:</h4>