Update the docs
This commit is contained in:
parent
1abdf4ca7c
commit
139d090357
|
@ -5,7 +5,7 @@ joblib==1.0.1;python_version>="3.6"
|
||||||
Markdown==3.3.4;python_version>="3.6"
|
Markdown==3.3.4;python_version>="3.6"
|
||||||
MarkupSafe==2.0.1;python_version>="3.6"
|
MarkupSafe==2.0.1;python_version>="3.6"
|
||||||
docutils==0.17.1
|
docutils==0.17.1
|
||||||
Jinja2==3.0.0;python_version>="3.6"
|
Jinja2==3.0.1;python_version>="3.6"
|
||||||
click==8.0.0
|
click==8.0.0
|
||||||
readme-renderer==29.0
|
readme-renderer==29.0
|
||||||
pymdown-extensions==8.2
|
pymdown-extensions==8.2
|
||||||
|
|
|
@ -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))
|
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>
|
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="28" /> Example tests using Logging:</h3>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -13,6 +13,7 @@ The following commands will work once you've installed seleniumbase.
|
||||||
```bash
|
```bash
|
||||||
seleniumbase download server
|
seleniumbase download server
|
||||||
```
|
```
|
||||||
|
|
||||||
* (Required for using your own Selenium Grid)
|
* (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>
|
<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
|
```bash
|
||||||
seleniumbase grid-hub {start|stop|restart} [OPTIONS]
|
seleniumbase grid-hub {start|stop|restart} [OPTIONS]
|
||||||
```
|
```
|
||||||
|
|
||||||
<b>Options:</b>
|
<b>Options:</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li> -v / --verbose (Increases verbosity of logging output.)</li>
|
<li> -v / --verbose (Increases verbosity of logging output.)</li>
|
||||||
|
@ -31,6 +33,7 @@ seleniumbase grid-hub {start|stop|restart} [OPTIONS]
|
||||||
```bash
|
```bash
|
||||||
seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]
|
seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]
|
||||||
```
|
```
|
||||||
|
|
||||||
<b>Options:</b>
|
<b>Options:</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li> -v / --verbose (Increases verbosity of logging output.)</li>
|
<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):
|
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:
|
* [BrowserStack](https://www.browserstack.com/automate#) Selenium Grid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pytest my_first_test.py --server=USERNAME:KEY@hub.browserstack.com --port=80
|
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:
|
* [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) Selenium Grid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pytest my_first_test.py --server=USERNAME:KEY@ondemand.saucelabs.com --port=80
|
pytest my_first_test.py --server=USERNAME:KEY@ondemand.saucelabs.com --port=80
|
||||||
```
|
```
|
||||||
|
|
||||||
* [TestingBot](https://testingbot.com/features) Selenium Grid:
|
* [TestingBot](https://testingbot.com/features) Selenium Grid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pytest my_first_test.py --server=USERNAME:KEY@hub.testingbot.com --port=80
|
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:
|
* [CrossBrowserTesting](https://help.crossbrowsertesting.com/selenium-testing/getting-started/python/) Selenium Grid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pytest my_first_test.py --server=USERNAME:KEY@hub.crossbrowsertesting.com --port=80
|
pytest my_first_test.py --server=USERNAME:KEY@hub.crossbrowsertesting.com --port=80
|
||||||
```
|
```
|
||||||
|
|
||||||
* [LambdaTest](https://www.lambdatest.com/selenium-automation) Selenium Grid:
|
* [LambdaTest](https://www.lambdatest.com/selenium-automation) Selenium Grid:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pytest my_first_test.py --server=USERNAME:KEY@hub.lambdatest.com --port=80
|
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>)
|
(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>
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue