Skip to content

Commit 7a9ac50

Browse files
authored
Merge pull request #945 from seleniumbase/refactor-dependencies
Update and refactor Python dependencies
2 parents 5ad7a8c + 90649a6 commit 7a9ac50

20 files changed

+31
-921
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ The code above will leave your browser window open in case there's a failure. (i
390390
--incognito # (Enable Chrome's Incognito mode.)
391391
--guest # (Enable Chrome's Guest mode.)
392392
--devtools # (Open Chrome's DevTools when the browser opens.)
393-
--reuse-session | --rs # (Reuse browser session between tests.)
393+
--reuse-session | --rs # (Reuse the browser session between tests.)
394394
--crumbs # (Delete all cookies between tests reusing a session.)
395395
--maximize-window # (Start tests with the web browser window maximized.)
396396
--save-screenshot # (Save a screenshot at the end of each test.)

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ joblib==1.0.1;python_version>="3.6"
55
Markdown==3.3.4;python_version>="3.6"
66
MarkupSafe==2.0.1;python_version>="3.6"
77
docutils==0.17.1
8+
python-dateutil==2.8.2
89
pkginfo==1.7.1;python_version>="3.6"
910
Jinja2==3.0.1;python_version>="3.6"
1011
click==8.0.1;python_version>="3.6"
@@ -15,7 +16,7 @@ importlib-metadata==4.6.1;python_version>="3.6"
1516
lunr==0.6.0;python_version>="3.6"
1617
nltk==3.6.2;python_version>="3.6"
1718
watchdog==2.1.3;python_version>="3.6"
18-
mkdocs==1.2.1;python_version>="3.6"
19+
mkdocs==1.2.2;python_version>="3.6"
1920
mkdocs-material==7.1.3;python_version>="3.6"
2021
mkdocs-exclude-search==0.5.2;python_version>="3.6"
2122
mkdocs-simple-hooks==0.1.3

examples/raw_parameter_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
One big advantage to running tests with Pytest is that most of this
1111
is done for you automatically, with the option to update any of the
12-
parameters through command line parsing. Pytest also provides you
12+
parameters through command-line parsing. Pytest also provides you
1313
with other plugins, such as ones for generating test reports,
1414
handling multithreading, and parametrized tests. Depending on your
1515
specific needs, you may need to call SeleniumBase commands without

help_docs/customizing_test_runs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ SeleniumBase provides additional ``pytest`` command-line options for tests:
147147
--incognito # (Enable Chrome's Incognito mode.)
148148
--guest # (Enable Chrome's Guest mode.)
149149
--devtools # (Open Chrome's DevTools when the browser opens.)
150-
--reuse-session # (Reuse the browser session between tests.)
150+
--reuse-session | --rs # (Reuse the browser session between tests.)
151151
--crumbs # (Delete all cookies between tests reusing a session.)
152152
--maximize-window # (Start tests with the web browser window maximized.)
153153
--save-screenshot # (Save a screenshot at the end of each test.)

requirements.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ packaging>=21.0;python_version>="3.6"
55
typing-extensions>=3.10.0.0
66
setuptools>=44.1.1;python_version<"3.5"
77
setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"
8-
setuptools>=57.1.0;python_version>="3.6"
8+
setuptools>=57.2.0;python_version>="3.6"
99
setuptools-scm==5.0.2;python_version<"3.6"
1010
setuptools-scm>=6.0.1;python_version>="3.6"
1111
wheel>=0.36.2
@@ -21,11 +21,15 @@ parso==0.7.1;python_version<"3.6"
2121
parso==0.8.2;python_version>="3.6"
2222
jedi==0.17.2;python_version<"3.6"
2323
jedi==0.18.0;python_version>="3.6"
24-
idna==2.10
24+
idna==2.10;python_version<"3.6"
25+
idna==3.2;python_version>="3.6"
2526
chardet==3.0.4;python_version<"3.6"
2627
chardet==4.0.0;python_version>="3.6"
28+
charset-normalizer==2.0.3;python_version>="3.6"
2729
urllib3==1.26.6
28-
requests==2.25.1
30+
requests==2.26.0;python_version<"3.5"
31+
requests==2.25.1;python_version>="3.5" and python_version<"3.6"
32+
requests==2.26.0;python_version>="3.6"
2933
selenium==3.141.0
3034
msedge-selenium-tools==3.141.3
3135
more-itertools==5.0.0;python_version<"3.5"
@@ -54,6 +58,7 @@ pytest-xdist==1.34.0;python_version<"3.5"
5458
pytest-xdist==2.2.1;python_version>="3.5" and python_version<"3.6"
5559
pytest-xdist==2.3.0;python_version>="3.6"
5660
parameterized==0.8.1
61+
sbvirtualdisplay==1.0.0
5762
soupsieve==1.9.6;python_version<"3.5"
5863
soupsieve==2.0.1;python_version>="3.5" and python_version<"3.6"
5964
soupsieve==2.2.1;python_version>="3.6"
@@ -77,9 +82,10 @@ ipython==7.16.1;python_version>="3.6" and python_version<"3.7"
7782
ipython==7.25.0;python_version>="3.7"
7883
matplotlib-inline==0.1.2;python_version>="3.7"
7984
colorama==0.4.4
85+
platformdirs==2.0.2
8086
pathlib2==2.3.5;python_version<"3.5"
8187
importlib-metadata==2.0.0;python_version<"3.6"
82-
virtualenv>=20.4.7
88+
virtualenv>=20.6.0
8389
pymysql==0.10.1;python_version<"3.6"
8490
pymysql==1.0.2;python_version>="3.6"
8591
pyotp==2.6.0
@@ -89,7 +95,7 @@ toml==0.10.2
8995
Pillow==6.2.2;python_version<"3.5"
9096
Pillow==7.2.0;python_version>="3.5" and python_version<"3.6"
9197
Pillow==8.3.1;python_version>="3.6"
92-
rich==10.5.0;python_version>="3.6" and python_version<"4.0"
98+
rich==10.6.0;python_version>="3.6" and python_version<"4.0"
9399
tornado==5.1.1;python_version<"3.5"
94100
tornado==6.1;python_version>="3.5"
95101
pdfminer.six==20191110;python_version<"3.5"

seleniumbase/ReadMe.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* <b>[drivers](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/drivers):</b> This is the folder where web drivers get downloaded to when installing them.
1010
* <b>[config](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/config):</b> Includes [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py), which provides default configuration options for tests.
1111
* <b>[extensions](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/extensions):</b> This folder contains Chrome extensions that can be used during test runs.
12-
* <b>[virtual_display](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/virtual_display):</b> This folder contains code for creating a headless virtual display.
1312
* <b>[common](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/common):</b> This folder contains useful Python decorators that can be used in tests.
1413
* <b>[utilities](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities):</b> This folder contains code for spinning up your own Selenium Grid, and more.
1514
* <b>[resources](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/resources):</b> This folder contains copies of JavaScript resources that are used by tests.

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.63.15"
2+
__version__ = "1.63.16"

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8502,7 +8502,7 @@ def setUp(self, masterqa_mode=False):
85028502
height = settings.HEADLESS_START_HEIGHT
85038503
try:
85048504
# from pyvirtualdisplay import Display # Skip for own lib
8505-
from seleniumbase.virtual_display.display import Display
8505+
from sbvirtualdisplay import Display
85068506

85078507
self.display = Display(visible=0, size=(width, height))
85088508
self.display.start()

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def pytest_terminal_summary(terminalreporter):
12351235
dash_lock_path = os.path.join(abs_path, dash_lock)
12361236
if os.path.exists(dash_lock_path):
12371237
sb_config._only_unittest = False
1238-
if sb_config._has_exception and (
1238+
if (sb_config._has_exception or sb_config._multithreaded) and (
12391239
sb_config.dashboard and not sb_config._only_unittest
12401240
):
12411241
# Print link a second time because the first one may be off-screen

seleniumbase/plugins/selenium_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def beforeTest(self, test):
639639
if self.options.headless:
640640
try:
641641
# from pyvirtualdisplay import Display # Skip for own lib
642-
from seleniumbase.virtual_display.display import Display
642+
from sbvirtualdisplay import Display
643643

644644
self.display = Display(visible=0, size=(1440, 1880))
645645
self.display.start()

0 commit comments

Comments
 (0)