Skip to content

Commit fbf31d4

Browse files
committed
Update the documentation
1 parent e151571 commit fbf31d4

File tree

6 files changed

+11
-73
lines changed

6 files changed

+11
-73
lines changed

help_docs/customizing_test_runs.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ pytest --settings-file=custom_settings.py
426426

427427
<h3><img src="https://seleniumbase.github.io/img/green_logo.png" title="SeleniumBase" width="32" /> Running tests on a remote Selenium Grid:</h3>
428428

429-
🌐 SeleniumBase lets you run tests on remote Selenium Grids such as [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid, [LambdaTest](https://www.lambdatest.com/selenium-automation)'s Selenium Grid, [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium)'s Selenium Grid, other Grids, and even your own Grid:
429+
🌐 SeleniumBase lets you run tests on remote Selenium Grids such as [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid, [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium)'s Selenium Grid, other Grids, and even your own Grid:
430430

431431
🌐 For setting browser desired capabilities while running Selenium remotely, see the ReadMe located here: https://github.com/seleniumbase/SeleniumBase/tree/master/examples/capabilities
432432

@@ -442,24 +442,6 @@ Here's how to connect to a Sauce Labs Selenium Grid server for running tests:
442442
pytest test_demo_site.py --server=USERNAME:[email protected] --port=443 --protocol=https
443443
```
444444

445-
Here's how to connect to a Perfecto Selenium Grid server for running tests:
446-
447-
```bash
448-
pytest test_demo_site.py --server=USERNAME:[email protected]/nexperience/perfectomobile --port=443
449-
```
450-
451-
Here's how to connect to a TestingBot Selenium Grid server for running tests:
452-
453-
```bash
454-
pytest test_demo_site.py --server=USERNAME:[email protected] --port=80
455-
```
456-
457-
Here's how to connect to a LambdaTest Selenium Grid server for running tests:
458-
459-
```bash
460-
pytest test_demo_site.py --server=USERNAME:[email protected] --port=80
461-
```
462-
463445
Here's how to connect to a CrossBrowserTesting Selenium Grid server for running tests:
464446

465447
```bash

help_docs/desired_capabilities.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) Using Desired Capabilities
44

5-
You can specify browser capabilities when running SeleniumBase tests on a remote Selenium Grid server such as <a href="https://www.browserstack.com/automate/capabilities" target="_blank">BrowserStack</a>, <a href="https://www.lambdatest.com/capabilities-generator/" target="_blank">LambdaTest</a>, or <a href="https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/" target="_blank">Sauce Labs</a>.
5+
You can specify browser capabilities when running SeleniumBase tests on a remote Selenium Grid server such as <a href="https://www.browserstack.com/automate/capabilities" target="_blank">BrowserStack</a> or <a href="https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/" target="_blank">Sauce Labs</a>.
66

77
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.)
88

99
```bash
1010
pytest test_demo_site.py --browser=remote --server=USERNAME:[email protected] --port=80 --cap_file=capabilities/sample_cap_file_BS.py
1111
```
1212

13-
```bash
14-
pytest test_demo_site.py --browser=remote --server=USERNAME:KEY@https://@hub.lambdatest.com --port=80 --protocol=https --cap_file=capabilities/sample_cap_file_LT.py
15-
```
16-
1713
```bash
1814
pytest test_demo_site.py --browser=remote --server=USERNAME:[email protected] --port=443 --protocol=https --cap_file=capabilities/sample_cap_file_SL.py
1915
```
@@ -34,20 +30,6 @@ desired_cap = {
3430
}
3531
```
3632

37-
Here's an example desired capabilities file for LambdaTest:
38-
39-
```python
40-
capabilities = {
41-
"build" : "your build name",
42-
"name" : "your test name",
43-
"platform" : "Windows 11",
44-
"browserName" : "Chrome",
45-
"version" : "101.0",
46-
"timezone" : "UTC+05:30",
47-
"geoLocation" : "IN",
48-
}
49-
```
50-
5133
Here's an example desired capabilities file for Sauce Labs:
5234

5335
```python
@@ -65,7 +47,6 @@ capabilities = {
6547

6648
<ul>
6749
<li><a href="https://www.browserstack.com/automate/capabilities" target="_blank">BrowserStack desired capabilities</a></li>
68-
<li><a href="https://www.lambdatest.com/capabilities-generator/" target="_blank">LambdaTest desired capabilities</a></li>
6950
<li><a href="https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/" target="_blank">Sauce Labs desired capabilities</a></li>
7051
</ul>
7152

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,14 +3698,13 @@ def get_new_driver(
36983698
raise Exception(
36993699
'Cannot use "remote" browser driver on localhost!'
37003700
" Did you mean to connect to a remote Grid server"
3701-
" such as BrowserStack, LambdaTest, or Sauce Labs?"
3701+
" such as BrowserStack or Sauce Labs?"
37023702
' If so, you must specify the "server" and "port"'
37033703
" parameters on the command line! "
37043704
"Example: "
37053705
"--server=user:[email protected] --port=80"
37063706
)
37073707
browserstack_ref = "https://browserstack.com/automate/capabilities"
3708-
lambdatest_ref = "https://www.lambdatest.com/capabilities-generator"
37093708
sauce_labs_ref = (
37103709
"https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/"
37113710
)
@@ -3714,13 +3713,11 @@ def get_new_driver(
37143713
"Need to specify a desired capabilities file when "
37153714
'using "--browser=remote". Add "--cap_file=FILE". '
37163715
"File should be in the Python format used by: "
3717-
"%s, "
3718-
"%s, OR "
3719-
"%s "
3720-
"See SeleniumBase/examples/capabilities/sample_cap_file_BS.py,"
3721-
" SeleniumBase/examples/capabilities/sample_cap_file_LT.py,"
3716+
"%s OR %s \n"
3717+
"(See SeleniumBase/examples/capabilities/sample_cap_file_BS.py"
37223718
" and SeleniumBase/examples/capabilities/sample_cap_file_SL.py"
3723-
% (browserstack_ref, lambdatest_ref, sauce_labs_ref)
3719+
" for examples!)"
3720+
% (browserstack_ref, sauce_labs_ref)
37243721
)
37253722
if browser is None:
37263723
browser = self.browser

seleniumbase/plugins/pytest_plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,17 +272,15 @@ def pytest_addoption(parser):
272272
dest="cap_file",
273273
default=None,
274274
help="""The file that stores browser desired capabilities
275-
for BrowserStack, LambdaTest, Sauce Labs,
276-
and other remote web drivers to use.""",
275+
for BrowserStack, Sauce Labs, or other grids.""",
277276
)
278277
parser.addoption(
279278
"--cap_string",
280279
"--cap-string",
281280
dest="cap_string",
282281
default=None,
283282
help="""The string that stores browser desired capabilities
284-
for BrowserStack, LambdaTest, Sauce Labs,
285-
and other remote web drivers to use.
283+
for BrowserStack, Sauce Labs, or other grids.
286284
Enclose cap-string in single quotes.
287285
Enclose parameter keys in double quotes.
288286
Example: --cap-string='{"name":"test1","v":"42"}'""",

seleniumbase/plugins/selenium_plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,15 @@ def options(self, parser, env):
149149
dest="cap_file",
150150
default=None,
151151
help="""The file that stores browser desired capabilities
152-
for BrowserStack, LambdaTest, Sauce Labs,
153-
and other remote web drivers to use.""",
152+
for BrowserStack, Sauce Labs, or other grids.""",
154153
)
155154
parser.addoption(
156155
"--cap_string",
157156
"--cap-string",
158157
dest="cap_string",
159158
default=None,
160159
help="""The string that stores browser desired capabilities
161-
for BrowserStack, LambdaTest, Sauce Labs,
162-
and other remote web drivers to use.
160+
for BrowserStack, Sauce Labs, or other grids.
163161
Enclose cap-string in single quotes.
164162
Enclose parameter keys in double quotes.
165163
Example: --cap-string='{"name":"test1","v":"42"}'""",

seleniumbase/utilities/selenium_grid/ReadMe.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ pytest test_demo_site.py --server=USERNAME:[email protected] --port=80
6464
pytest test_demo_site.py --server=USERNAME:[email protected] --port=443 --protocol=https
6565
```
6666

67-
* [Perfecto](https://www.perfecto.io/integrations/selenium) Selenium Grid:
68-
69-
```bash
70-
pytest test_demo_site.py --server=USERNAME:[email protected]/nexperience/perfectomobile --port=443
71-
```
72-
73-
* [TestingBot](https://testingbot.com/features) Selenium Grid:
74-
75-
```bash
76-
pytest test_demo_site.py --server=USERNAME:[email protected] --port=80
77-
```
78-
79-
* [LambdaTest](https://www.lambdatest.com/selenium-automation) Selenium Grid:
80-
81-
```bash
82-
pytest test_demo_site.py --server=USERNAME:[email protected] --port=80
83-
```
84-
8567
* [CrossBrowserTesting](https://help.crossbrowsertesting.com/selenium-testing/getting-started/python/) Selenium Grid:
8668

8769
```bash

0 commit comments

Comments
 (0)