Skip to content

Commit 1e8438f

Browse files
authored
Merge pull request #722 from seleniumbase/virtual-device-farm
Multiple improvements and updates
2 parents 66c5933 + 729480a commit 1e8438f

File tree

15 files changed

+103
-59
lines changed

15 files changed

+103
-59
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<meta property="og:site_name" content="SeleniumBase | Docs">
2-
<meta property="og:title" content="SeleniumBase | Python Web Testing" />
1+
<meta property="og:site_name" content="SeleniumBase">
2+
<meta property="og:title" content="SeleniumBase: Python Web Automation and E2E Testing" />
33
<meta property="og:description" content="Build fast, reliable, end-to-end tests." />
44
<meta property="og:keywords" content="Python, pytest, selenium, webdriver, test automation, testing, seleniumbase, test framework, RPA, reports, website tours, presentations">
55
<meta property="og:image" content="https://seleniumbase.io/cdn/img/sb_logo_dh.png" />
66
<link rel="icon" href="https://seleniumbase.io/img/logo3a.png" />
77

88
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
9-
<img src="https://seleniumbase.io/cdn/img/fancy_logo_14.png" alt="SeleniumBase" width="300" />
9+
<img src="https://seleniumbase.io/cdn/img/fancy_logo_14.png" alt="SeleniumBase" title="SeleniumBase" width="300" />
1010
</a></p>
11-
<p align="center"><b>A complete end-to-end testing experience.</b></p>
12-
<p align="center">Extends <a href="https://www.w3.org/TR/webdriver/">Selenium/WebDriver</a> and <a href="https://docs.pytest.org/en/latest/index.html">pytest</a>.</p>
11+
<p align="center"><b>The complete web automation library.</b></p>
12+
<p align="center">Powered by WebDriver APIs and pytest.</p>
1313
<!-- View on GitHub -->
1414
<p align="center">
1515
<a href="https://github.com/seleniumbase/SeleniumBase/releases">
@@ -22,8 +22,8 @@
2222
</p>
2323

2424
<p>
25-
<b>SeleniumBase</b> is an all-in-one framework for reliable browser automation, end-to-end testing, reports, charts, presentations, and website tours.
26-
Tests are run with <b>pytest</b>. Browsers are controlled by <b>WebDriver</b>.
25+
<b>SeleniumBase</b> is an all-in-one framework for reliable browser automation, end-to-end testing, reports, charts, presentations, website tours, and visual testing.
26+
Tests are run with <a href="https://docs.pytest.org/en/latest/index.html">pytest</a>. Browsers are controlled by <a href="https://www.w3.org/TR/webdriver2/#endpoints">WebDriver</a>.
2727
</p>
2828

2929
<p align="center">
@@ -57,7 +57,7 @@ Tests are run with <b>pytest</b>. Browsers are controlled by <b>WebDriver</b>.
5757

5858
--------
5959

60-
<p align="center"><img src="https://cdn2.hubspot.net/hubfs/100006/images/swag_mobile.gif" width="450" alt="SeleniumBase Mobile Mode" title="SeleniumBase Mobile Mode" /></p>
60+
<p align="center"><img src="https://seleniumbase.io/cdn/gif/swag_mobile.gif" width="450" alt="SeleniumBase Mobile Mode" title="SeleniumBase Mobile Mode" /></p>
6161

6262
```bash
6363
pytest test_swag_labs.py --mobile
@@ -414,8 +414,9 @@ SeleniumBase provides additional ``pytest`` command-line options for tests:
414414
--ad-block # (Block some types of display ads after page loads.)
415415
--block-images # (Block images from loading during tests.)
416416
--verify-delay=SECONDS # (The delay before MasterQA verification checks.)
417-
--disable-csp # (This disables the Content Security Policy of websites.)
418-
--enable-ws # (Enable Web Security on Chrome.)
417+
--disable-csp # (Disable the Content Security Policy of websites.)
418+
--disable-ws # (Disable Web Security on Chromium-based browsers.)
419+
--enable-ws # (Enable Web Security on Chromium-based browsers.)
419420
--enable-sync # (Enable "Chrome Sync".)
420421
--use-auto-ext # (Use Chrome's automation extension.)
421422
--swiftshader # (Use Chrome's "--use-gl=swiftshader" feature.)

docs/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
regex>=2020.9.27
1+
regex>=2020.10.15
22
tqdm>=4.50.2
33
livereload==2.6.3;python_version>="3.6"
4-
Markdown==3.3.1
5-
readme-renderer==27.0
4+
Markdown==3.3.2
5+
readme-renderer==28.0
66
pymdown-extensions==8.0.1
77
mkdocs==1.1.2
8-
mkdocs-material==6.0.2
8+
mkdocs-material==6.1.0
99
mkdocs-simple-hooks==0.1.1
1010
mkdocs-material-extensions==1.0.1
1111
mkdocs-minify-plugin==0.3.0

examples/raw_parameter_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
sb.log_path = "latest_logs/"
4848
sb.archive_logs = False
4949
sb.disable_csp = False
50+
sb.disable_ws = False
5051
sb.enable_ws = False
5152
sb.enable_sync = False
5253
sb.use_auto_ext = False

examples/translations/russian_test_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_пример_1(self):
1111
self.введите("#searchInput", "МГУ")
1212
self.нажмите("#searchButton")
1313
self.подтвердить_текст("университет", "#firstHeading")
14-
self.подтвердить_элемент('img[alt="МГУ, вид с воздуха.jpg"]')
14+
self.подтвердить_элемент('img[alt*="Главное здание МГУ"]')
1515
self.введите("#searchInput", "приключения Шурика")
1616
self.нажмите("#searchButton")
1717
self.подтвердить_текст("Операция «Ы» и другие приключения Шурика")

help_docs/ReadMe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
<div><a href="https://seleniumbase.io/demo_page"><b>Demo Page / Demo Site</b></a></div>
7272
<div><a href="https://seleniumbase.io/other/tinymce"><b>TinyMCE Demo Page</b></a></div>
73+
<div><a href="https://seleniumbase.io/devices/"><b>Virtual Device Farm</b></a></div>
7374
<div><a href="https://seleniumbase.io/error_page/"><b>Error Page for Tests</b></a></div>
7475
<div><a href="https://seleniumbase.io/other/presenter.html"><b>Presenter Demo</b></a></div>
7576
<div><a href="https://seleniumbase.io/other/core_presentation.html"><b>Core Presentation</b></a></div>

help_docs/customizing_test_runs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ SeleniumBase provides additional ``pytest`` command-line options for tests:
126126
--ad-block # (Block some types of display ads after page loads.)
127127
--block-images # (Block images from loading during tests.)
128128
--verify-delay=SECONDS # (The delay before MasterQA verification checks.)
129-
--disable-csp # (This disables the Content Security Policy of websites.)
130-
--enable-ws # (Enable Web Security on Chrome.)
129+
--disable-csp # (Disable the Content Security Policy of websites.)
130+
--disable-ws # (Disable Web Security on Chromium-based browsers.)
131+
--enable-ws # (Enable Web Security on Chromium-based browsers.)
131132
--enable-sync # (Enable "Chrome Sync".)
132133
--use-auto-ext # (Use Chrome's automation extension.)
133134
--swiftshader # (Use Chrome's "--use-gl=swiftshader" feature.)

help_docs/mobile_testing.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,42 @@ Use ``--mobile`` to run SeleniumBase tests using Chrome's mobile device emulator
1111
```bash
1212
pytest test_skype_site.py --mobile
1313
```
14-
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/skype_mobile_test_2.gif" title="SeleniumBase Mobile Testing">](https://cdn2.hubspot.net/hubfs/100006/images/skype_mobile_test_2.gif)
14+
15+
[<img src="https://seleniumbase.io/cdn/gif/skype_mobile_test_2.gif" title="SeleniumBase Mobile Testing">](https://seleniumbase.io/cdn/gif/skype_mobile_test_2.gif)
1516

1617
To configure Device Metrics, use:
18+
1719
```bash
1820
--metrics="CSS_Width,CSS_Height,Pixel_Ratio"
1921
```
2022

2123
To configure the User-Agent, use:
24+
2225
```bash
2326
--agent="USER-AGENT-STRING"
2427
```
2528

2629
To find real values for Device Metrics, see:
30+
2731
* [Device Metrics List](https://gist.github.com/sidferreira/3f5fad525e99b395d8bd882ee0fd9d00)
2832

2933
To find real User-Agent strings, see:
34+
3035
* [User Agent Strings List](https://developers.whatismybrowser.com/useragents/explore/)
3136

3237
--------
3338

34-
Here's another example of running a mobile test ([SeleniumBase/examples/test_swag_labs.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py)), which demonstrates using ``--metrics`` and ``--agent`` with ``--mobile``:
39+
<b>Here's another example of a mobile test:</b>
40+
41+
[SeleniumBase/examples/test_swag_labs.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py)
42+
43+
```bash
44+
pytest test_swag_labs.py --mobile
45+
```
46+
47+
[<img src="https://seleniumbase.io/cdn/gif/swag_mobile.gif" title="SeleniumBase Mobile Testing">](https://seleniumbase.io/cdn/gif/swag_mobile.gif)
48+
49+
<b>Here's an example of configuring mobile settings for that test:</b>
3550

3651
```bash
3752
# Run tests using Chrome's mobile device emulator (default settings)
@@ -43,7 +58,6 @@ pytest test_swag_labs.py --mobile --metrics="411,731,3"
4358
# Run mobile tests specifying the user agent
4459
pytest test_swag_labs.py --mobile --agent="Mozilla/5.0 (Linux; Android 9; Pixel 3 XL)"
4560
```
46-
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/swag_mobile.gif" title="SeleniumBase Mobile Testing">](https://cdn2.hubspot.net/hubfs/100006/images/swag_mobile.gif)
4761

4862
--------
4963

mkdocs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Project information
2-
site_name: SeleniumBase | Docs
2+
site_name: Docs - seleniumbase.io
33
site_url: https://seleniumbase.io
44
site_author: Michael Mintz
5-
site_description: Fast, reliable, end-to-end testing
5+
site_description: The world's most powerful all-in-one web automation platform. Build fast, reliable, end-to-end tests with Python.
66
# Repository information
77
repo_name: seleniumbase/SeleniumBase
88
repo_url: https://github.com/seleniumbase/SeleniumBase
@@ -33,7 +33,7 @@ theme:
3333
search_index_only: true
3434
features:
3535
- tabs
36-
# - instant
36+
- instant
3737
palette:
3838
scheme: default
3939
primary: blue
@@ -47,13 +47,13 @@ theme:
4747
plugins:
4848
- search
4949
- minify:
50-
minify_html: false
50+
minify_html: true
5151
- mkdocs-simple-hooks:
5252
hooks:
5353
on_pre_build: docs.prepare:main
5454
# Page tree
5555
nav:
56-
- SeleniumBase | Docs: README.md
56+
- SeleniumBase Docs: README.md
5757
- Features List: help_docs/features_list.md
5858
- Running Example Tests: examples/ReadMe.md
5959
- Command Line Options: help_docs/customizing_test_runs.md
@@ -98,13 +98,14 @@ nav:
9898
- Docker Help: integrations/docker/ReadMe.md
9999
- MySQL Help: help_docs/mysql_installation.md
100100
- Case Studies: help_docs/happy_customers.md
101-
- Thank You: help_docs/thank_you.md
102101
- Demo Pages:
103102
- Demo Page / Demo Site: https://seleniumbase.io/demo_page
104103
- TinyMCE Demo Page: https://seleniumbase.io/other/tinymce
104+
- Virtual Device Farm: https://seleniumbase.io/devices/
105105
- Error Demo Page: https://seleniumbase.io/error_page/
106106
- Presenter Demo: https://seleniumbase.io/other/presenter.html
107107
- Core Presentation: https://seleniumbase.io/other/core_presentation.html
108108
- Chart Maker Demo: https://seleniumbase.io/other/chart_presentation.html
109+
- Thank You: help_docs/thank_you.md
109110
# Google Analytics
110111
google_analytics: ['UA-167313767-1', 'seleniumbase.io']

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pip>=20.2.3
1+
pip>=20.2.4
22
packaging>=20.4
33
setuptools>=44.1.1;python_version<"3.5"
4-
setuptools>=50.3.0;python_version>="3.5"
4+
setuptools>=50.3.2;python_version>="3.5"
55
setuptools-scm>=4.1.2
66
wheel>=0.35.1
77
six==1.15.0
@@ -11,7 +11,7 @@ parso==0.7.1
1111
jedi==0.17.2
1212
idna==2.10
1313
chardet==3.0.4
14-
urllib3==1.25.10
14+
urllib3==1.25.11
1515
requests==2.24.0
1616
selenium==3.141.0
1717
msedge-selenium-tools==3.141.2
@@ -45,7 +45,7 @@ pyopenssl==19.1.0
4545
pygments==2.5.2;python_version<"3.5"
4646
pygments==2.7.1;python_version>="3.5"
4747
traitlets==4.3.3;python_version<"3.7"
48-
traitlets==5.0.4;python_version>="3.7"
48+
traitlets==5.0.5;python_version>="3.7"
4949
prompt-toolkit==1.0.18;python_version<"3.6"
5050
prompt-toolkit==3.0.8;python_version>="3.6"
5151
ipython==5.10.0;python_version<"3.5"
@@ -55,21 +55,21 @@ ipython==7.18.1;python_version>="3.7"
5555
colorama==0.4.4
5656
pathlib2==2.3.5;python_version<"3.5"
5757
importlib-metadata==2.0.0
58-
virtualenv>=20.0.34
58+
virtualenv>=20.0.35
5959
pymysql==0.10.1
6060
coverage==5.3
6161
brython==3.9.0
62-
pyotp==2.4.0
62+
pyotp==2.4.1
6363
boto==2.49.0
6464
cffi==1.14.3
6565
zipp==1.2.0;python_version<"3.6"
66-
zipp==3.3.0;python_version>="3.6"
67-
rich==8.0.0;python_version>="3.6" and python_version<"4.0"
66+
zipp==3.3.1;python_version>="3.6"
67+
rich==9.0.1;python_version>="3.6" and python_version<"4.0"
6868
flake8==3.7.9;python_version<"3.5"
6969
flake8==3.8.4;python_version>="3.5"
7070
pyflakes==2.1.1;python_version<"3.5"
7171
pyflakes==2.2.0;python_version>="3.5"
7272
certifi>=2020.6.20
7373
allure-pytest==2.8.18
7474
pdfminer.six==20191110;python_version<"3.5"
75-
pdfminer.six==20200726;python_version>="3.5"
75+
pdfminer.six==20201018;python_version>="3.5"

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "1.49.27"
2+
__version__ = "1.50.0"

0 commit comments

Comments
 (0)