Skip to content

Commit 14f2d82

Browse files
authored
Merge pull request #756 from seleniumbase/update-the-sbase-install-script
Update the seleniumbase install script
2 parents ead663c + 21667a5 commit 14f2d82

File tree

5 files changed

+34
-23
lines changed

5 files changed

+34
-23
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="icon" href="https://seleniumbase.io/img/logo6.png" />
77

88
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
9-
<img src="https://seleniumbase.io/cdn/img/mac_sb_logo_3.png" alt="SeleniumBase" title="SeleniumBase" width="360" /></a></p>
9+
<img src="https://seleniumbase.io/cdn/img/mac_sb_logo_3.png" alt="SeleniumBase" title="SeleniumBase" width="420" /></a></p>
1010

1111
<!-- View on GitHub -->
1212
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/releases">
@@ -49,10 +49,10 @@ Tests are run with <a href="https://docs.pytest.org/en/latest/index.html">pytest
4949
</p>
5050

5151
* Simplifies the creation of Web-UI tests.
52-
* Smart-waiting code keeps tests reliable.
52+
* Uses smart-waiting code for reliability.
53+
* Expands pytest [command-line options](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md).
5354
* Includes tools for [logging and reports](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md).
54-
* Has plugins that add new [pytest options](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md).
55-
* Has a vast library of [versatile methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md).
55+
* Has a vast library of [dynamic methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md).
5656

5757
--------
5858

examples/ReadMe.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="300" />
1+
<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="320" />
22

33
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Running Example Tests:</h2>
44

@@ -73,7 +73,7 @@ pytest test_demo_site.py
7373
Run tests multi-threaded using [n] threads:
7474

7575
```bash
76-
pytest test_suite.py -v -n=4
76+
pytest test_suite.py -n=4
7777
```
7878

7979
Run a parameterized test: (Generates multiple tests from one)
@@ -82,10 +82,16 @@ Run a parameterized test: (Generates multiple tests from one)
8282
pytest parameterized_test.py -v
8383
```
8484

85-
Run a test suite and generate a pytest report: (pytest-only)
85+
Run a test suite and generate a SeleniumBase Dashboard:
8686

8787
```bash
88-
pytest test_suite.py -v --html=report.html
88+
pytest test_suite.py --dashboard
89+
```
90+
91+
Run a test suite and generate a pytest report:
92+
93+
```bash
94+
pytest test_suite.py --html=report.html
8995
```
9096

9197
Run a failing test: (See the ``latest_logs/`` folder for logs and screenshots)
@@ -109,7 +115,7 @@ pytest -m marker_test_suite -v
109115
Run an example test suite that reuses the browser session between tests:
110116

111117
```bash
112-
pytest test_suite.py --reuse-session -v
118+
pytest test_suite.py --reuse-session
113119
```
114120

115121
Run an example test demonstrating the ``rate_limited`` Python decorator:
@@ -134,13 +140,13 @@ Run an example test with nosetests:
134140
nosetests my_first_test.py
135141
```
136142

137-
Run an example test suite and generate a nosetest report: (nosetests-only)
143+
Run an example test suite and generate a nosetest report:
138144

139145
```bash
140146
nosetests test_suite.py --report --show-report
141147
```
142148

143-
Run an example test using a nosetest configuration file: (nosetests-only)
149+
Run an example test using a nosetest configuration file:
144150

145151
```bash
146152
nosetests my_first_test.py --config=example_config.cfg
@@ -160,7 +166,7 @@ python gui_test_runner.py
160166

161167
--------
162168

163-
<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290" />
169+
<img src="https://seleniumbase.io/cdn/img/super_logo_sb4.png" title="SeleniumBase" width="320" />
164170

165171
<a href="https://github.com/seleniumbase/SeleniumBase">
166172
<img src="https://img.shields.io/badge/tested%20with-SeleniumBase-04C38E.svg" alt="Tested with SeleniumBase" /></a>

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.51.1"
2+
__version__ = "1.51.2"

seleniumbase/console_scripts/sb_install.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
sbase install chromedriver
1414
sbase install geckodriver
1515
sbase install edgedriver
16-
sbase install chromedriver 85.0.4183.87
17-
sbase install chromedriver 85
16+
sbase install chromedriver 87.0.4280.88
17+
sbase install chromedriver 87
1818
sbase install chromedriver latest
1919
sbase install chromedriver -p
2020
sbase install chromedriver latest -p
21-
sbase install edgedriver 86.0.622.69
21+
sbase install edgedriver 87.0.664.66
2222
Output:
2323
Installs the chosen webdriver to seleniumbase/drivers/
2424
(chromedriver is required for Chrome automation)
@@ -43,7 +43,7 @@
4343
LOCAL_PATH = "/usr/local/bin/" # On Mac and Linux systems
4444
DEFAULT_CHROMEDRIVER_VERSION = "2.44" # (Specify "latest" to get the latest)
4545
DEFAULT_GECKODRIVER_VERSION = "v0.28.0"
46-
DEFAULT_EDGEDRIVER_VERSION = "86.0.622.69" # (Looks for LATEST_STABLE first)
46+
DEFAULT_EDGEDRIVER_VERSION = "87.0.664.66" # (Looks for LATEST_STABLE first)
4747
DEFAULT_OPERADRIVER_VERSION = "v.84.0.4147.89"
4848

4949

@@ -118,6 +118,9 @@ def main(override=None):
118118
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
119119
c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
120120
c3 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX
121+
c4 = colorama.Fore.LIGHTRED_EX + colorama.Back.LIGHTWHITE_EX
122+
c5 = colorama.Fore.RED + colorama.Back.LIGHTWHITE_EX
123+
c6 = colorama.Fore.LIGHTYELLOW_EX + colorama.Back.BLUE
121124
cr = colorama.Style.RESET_ALL
122125
if "linux" in sys_plat:
123126
c1 = ''
@@ -185,19 +188,21 @@ def main(override=None):
185188
p_version = use_version
186189
p_version = c3 + use_version + cr
187190
if get_latest:
188-
p_version = p_version + " (Latest)"
191+
p_version = p_version + " " + c2 + "(Latest)" + cr
189192
else:
190-
p_version = p_version + " (NOT Latest)"
193+
not_latest = c5 + "(" + c4 + "NOT Latest" + c5 + ")" + cr
194+
p_version = p_version + " " + not_latest
191195
msg = c2 + "chromedriver version for download" + cr
192196
print("\n*** %s = %s" % (msg, p_version))
193197
else:
194198
raise Exception("Could not find chromedriver to download!\n")
195199
if not get_latest:
196200
to_upgrade = " " + c3 + "To upgrade" + cr
197201
run_this = c3 + "run this" + cr
198-
install_sb = c1 + "seleniumbase install chromedriver latest" + cr
199-
print("\n#%s to the latest version of chromedriver," % to_upgrade)
200-
print('# %s: >>> %s' % (run_this, install_sb))
202+
install_sb = c6 + "sbase install chromedriver latest" + cr
203+
print("\n %s to the latest version of chromedriver," % to_upgrade)
204+
print(' %s: >>> %s' % (run_this, install_sb))
205+
print(' (Requires the latest version of Chrome installed)')
201206
elif name == "geckodriver" or name == "firefoxdriver":
202207
use_version = DEFAULT_GECKODRIVER_VERSION
203208
found_geckodriver = False

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def pytest_runtest_setup():
669669
star_len = len("Dashboard: ") + len(dashboard_html)
670670
stars = "*" * star_len
671671
colorama.init(autoreset=True)
672-
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX
672+
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
673673
cr = colorama.Style.RESET_ALL
674674
if "linux" in sys.platform:
675675
c1 = ''

0 commit comments

Comments
 (0)