Skip to content

Commit ea02531

Browse files
authored
Merge pull request #2038 from seleniumbase/driver-manager-updates
Make improvements to the Driver Manager
2 parents 101bd16 + 099d8f7 commit ea02531

File tree

15 files changed

+560
-265
lines changed

15 files changed

+560
-265
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,13 +1332,14 @@ pytest --reruns=1 --reruns-delay=1
13321332
<span><a href="https://www.youtube.com/playlist?list=PLp9uKicxkBc5UIlGi2BuE3aWC7JyXpD3m"><img src="https://seleniumbase.github.io/cdn/img/youtube.png" title="SeleniumBase Playlist on YouTube" alt="SeleniumBase Playlist on YouTube" width="68" /></a></span>
13331333
<span><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_github.svg" title="SeleniumBase on GitHub" alt="SeleniumBase on GitHub" width="62" /></a></span>
13341334
<span><a href="https://www.facebook.com/SeleniumBase"><img src="https://seleniumbase.io/img/social/share_facebook.svg" title="SeleniumBase on Facebook" alt="SeleniumBase on Facebook" width="64" /></a></span>
1335-
<span><a href="https://gitter.im/seleniumbase/SeleniumBase" target="_blank"><img src="https://seleniumbase.github.io/img/social/share_gitter.svg" title="SeleniumBase on Gitter" alt="SeleniumBase on Gitter" width="52" /></a></span>
1335+
<span><a href="https://gitter.im/seleniumbase/SeleniumBase" target="_blank"><img src="https://seleniumbase.github.io/img/social/share_gitter.svg" title="SeleniumBase on Gitter" alt="SeleniumBase on Gitter" width="50" /></a></span>
13361336
</div></p>
13371337
1338-
<p><div><a href="https://github.com/mdmintz">https://github.com/mdmintz</a></div></p>
1338+
<p><div><b><a href="https://github.com/mdmintz">https://github.com/mdmintz</a></b></div></p>
13391339
1340-
<div><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/cdn/img/fancy_logo_14.png" title="SeleniumBase" width="220" /></a></div> <div><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-22BBCC.svg" title="SeleniumBase" /></a> <a href="https://gitter.im/seleniumbase/SeleniumBase" target="_blank"><img src="https://img.shields.io/gitter/room/seleniumbase/SeleniumBase.svg" alt="Gitter chat"/></a></div> <div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://img.shields.io/badge/tested%20with-SeleniumBase-04C38E.svg" alt="Tested with SeleniumBase" /></a></div> <div><a href="https://seleniumbase.io"><img src="https://img.shields.io/badge/docs-seleniumbase.io-11BBAA.svg" alt="SeleniumBase Docs" /></a></div>
1340+
<div><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/cdn/img/fancy_logo_14.png" title="SeleniumBase" width="240" /></a></div> <div><a href="https://seleniumbase.io"><img src="https://img.shields.io/badge/docs-seleniumbase.io-11BBAA.svg" alt="SeleniumBase Docs" /></a></div> <div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://img.shields.io/badge/tested%20with-SeleniumBase-04C38E.svg" alt="Tested with SeleniumBase" /></a></div> <div><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-22BBCC.svg" title="SeleniumBase" /></a> <a href="https://gitter.im/seleniumbase/SeleniumBase" target="_blank"><img src="https://img.shields.io/gitter/room/seleniumbase/SeleniumBase.svg" alt="Gitter chat"/></a></div>
13411341
<div><a href="https://pepy.tech/project/seleniumbase" target="_blank"><img src="https://static.pepy.tech/badge/seleniumbase" alt="SeleniumBase PyPI downloads" /></a></div>
1342+
<img src="https://visitor-badge.laobi.icu/badge?page_id=seleniumbase" alt="visitor badge"/>
13421343
<div><a href="https://github.com/seleniumbase/SeleniumBase/stargazers"><img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg?color=19A57B" title="Stargazers" /></a></div>
13431344
13441345
--------

examples/custom_settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
HEADLESS_START_WIDTH = 1440
7373
HEADLESS_START_HEIGHT = 1880
7474

75+
# If True, hides messages related to downloading drivers.
76+
# If False, you'll see details about downloading drivers.
77+
# (This only affects driver downloads coming from tests.)
78+
# (Eg. Using "sbase get chromedriver" won't hide output.)
79+
HIDE_DRIVER_DOWNLOADS = False
80+
7581
# Changing the default behavior of MasterQA Mode.
7682
MASTERQA_DEFAULT_VALIDATION_MESSAGE = "Does the page look good?"
7783
MASTERQA_WAIT_TIME_BEFORE_VERIFY = 0.5

help_docs/webdriver_installation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ If the necessary driver is not found in this location while running tests, Selen
2121
```bash
2222
sbase get chromedriver 114
2323
sbase get chromedriver 114.0.5735.90
24+
sbase get chromedriver stable
25+
sbase get chromedriver beta
26+
sbase get chromedriver dev
27+
sbase get chromedriver canary
28+
sbase get chromedriver previous # One major version before the stable version
29+
sbase get chromedriver mlatest # Milestone latest version for detected browser
2430
sbase get edgedriver 115.0.1901.183
2531
```
2632

mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ paginate==0.5.6
2020
pyquery==2.0.0
2121
readtime==3.0.0
2222
mkdocs==1.5.2
23-
mkdocs-material==9.2.3
23+
mkdocs-material==9.2.5
2424
mkdocs-exclude-search==0.6.5
2525
mkdocs-simple-hooks==0.1.5
2626
mkdocs-material-extensions==1.1.1

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ attrs==22.1.0;python_version<"3.7"
1111
attrs>=23.1.0;python_version>="3.7"
1212
certifi>=2023.7.22
1313
filelock>=3.4.1;python_version<"3.7"
14-
filelock>=3.12.2;python_version>="3.7"
14+
filelock>=3.12.2;python_version>="3.7" and python_version<"3.8"
15+
filelock>=3.12.3;python_version>="3.8"
1516
platformdirs>=2.4.0;python_version<"3.7"
1617
platformdirs>=3.10.0;python_version>="3.7"
1718
parse>=1.19.1
@@ -47,7 +48,8 @@ execnet==2.0.2;python_version>="3.7"
4748
iniconfig==1.1.1;python_version<"3.7"
4849
iniconfig==2.0.0;python_version>="3.7"
4950
pluggy==1.0.0;python_version<"3.7"
50-
pluggy==1.2.0;python_version>="3.7"
51+
pluggy==1.2.0;python_version>="3.7" and python_version<"3.8"
52+
pluggy==1.3.0;python_version>="3.8"
5153
py==1.11.0
5254
pytest==7.0.1;python_version<"3.7"
5355
pytest==7.4.0;python_version>="3.7"

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__ = "4.17.11"
2+
__version__ = "4.17.12"

seleniumbase/config/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
HEADLESS_START_WIDTH = 1440
119119
HEADLESS_START_HEIGHT = 1880
120120

121+
# If True, hides messages related to downloading drivers.
122+
# If False, you'll see details about downloading drivers.
123+
# (This only affects driver downloads coming from tests.)
124+
# (If calling "sbase get chromedriver", then won't hide.)
125+
HIDE_DRIVER_DOWNLOADS = False
126+
121127
# #####>>>>>----- MasterQA SETTINGS -----<<<<<#####
122128
# ##### (Used when importing MasterQA as the parent class)
123129

seleniumbase/console_scripts/ReadMe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ sbase get geckodriver
6464
sbase get edgedriver
6565
sbase get chromedriver 114
6666
sbase get chromedriver 114.0.5735.90
67+
sbase get chromedriver stable
68+
sbase get chromedriver beta
6769
sbase get chromedriver -p
6870
```
6971

seleniumbase/console_scripts/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import colorama
4040
import sys
4141
import time
42+
from seleniumbase.config import settings
4243
from seleniumbase.fixtures import constants
4344

4445
colorama.init(autoreset=True)
@@ -143,6 +144,8 @@ def show_install_usage():
143144
print(" sbase get edgedriver")
144145
print(" sbase get chromedriver 114")
145146
print(" sbase get chromedriver 114.0.5735.90")
147+
print(" sbase get chromedriver stable")
148+
print(" sbase get chromedriver beta")
146149
print(" sbase get chromedriver -p")
147150
print(" Output:")
148151
print(" Downloads the webdriver to seleniumbase/drivers/")
@@ -984,6 +987,7 @@ def main():
984987
proxy_helper.validate_proxy_string(proxy_string)
985988
break
986989
try:
990+
settings.HIDE_DRIVER_DOWNLOADS = False
987991
sb_install.main()
988992
except Exception as e:
989993
invalid_run_cmd = constants.Warnings.INVALID_RUN_COMMAND

0 commit comments

Comments
 (0)