Skip to content

Commit e364af4

Browse files
committed
Make improvements to the Driver Manager
1 parent 101bd16 commit e364af4

File tree

8 files changed

+538
-256
lines changed

8 files changed

+538
-256
lines changed

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

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/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)