Skip to content

Commit 78b4579

Browse files
authored
Merge pull request #256 from seleniumbase/update-styling
Update console scripts, styling, and simplify installation
2 parents 30fbc9d + b2a8aa1 commit 78b4579

File tree

7 files changed

+57
-43
lines changed

7 files changed

+57
-43
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_2h2.png" title="SeleniumBase" height="48">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
22

3-
[<img src="https://img.shields.io/github/release/seleniumbase/SeleniumBase.svg" />](https://github.com/seleniumbase/SeleniumBase/releases) [<img src="https://img.shields.io/badge/python-2.7,_3.x-22AADD.svg" alt="Python versions" />](https://github.com/seleniumbase/SeleniumBase/blob/master/.travis.yml) [<img src="https://travis-ci.org/seleniumbase/SeleniumBase.svg?branch=master" alt="Build Status" />](https://travis-ci.org/seleniumbase/SeleniumBase) [<img src="https://img.shields.io/github/issues-closed-raw/seleniumbase/SeleniumBase.svg" alt="Closed Issues" />](https://github.com/seleniumbase/SeleniumBase/issues?q=is%3Aissue+is%3Aclosed) [<img src="https://img.shields.io/badge/pypi-seleniumbase-forestgreen.svg" alt="pypi" />](https://pypi.python.org/pypi/seleniumbase) [<img src="https://badges.gitter.im/seleniumbase/SeleniumBase.svg" alt="Join the Gitter Chat" />](https://gitter.im/seleniumbase/SeleniumBase) [<img src="http://img.shields.io/badge/license-MIT-22BBCC.svg" alt="MIT License" />](https://github.com/seleniumbase/SeleniumBase/blob/master/LICENSE) [<img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg" alt="GitHub Stars" />](https://github.com/seleniumbase/SeleniumBase/stargazers)<br />
3+
[<img src="https://img.shields.io/github/release/seleniumbase/SeleniumBase.svg" />](https://github.com/seleniumbase/SeleniumBase/releases) [<img src="https://travis-ci.org/seleniumbase/SeleniumBase.svg?branch=master" alt="Build Status" />](https://travis-ci.org/seleniumbase/SeleniumBase) [<img src="https://badges.gitter.im/seleniumbase/SeleniumBase.svg" alt="Join the Gitter Chat" />](https://gitter.im/seleniumbase/SeleniumBase)<br />
44

5-
A complete framework for web automation, end-to-end testing, and [interactive walkthroughs](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md). SeleniumBase uses [Pytest](https://docs.pytest.org/en/latest/) for running Python scripts, while using [WebDriver](https://www.seleniumhq.org/) for controlling web browsers.
5+
A fast, simple, and reliable framework for automating UI testing and [prototyping JS tours](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md). SeleniumBase uses [Pytest](https://docs.pytest.org/en/latest/) for running Python scripts, and [WebDriver](https://www.seleniumhq.org/) for controlling web browsers. [<img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg" alt="GitHub Stars" />](https://github.com/seleniumbase/SeleniumBase/stargazers)
66

77
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> Quick Start
88

9-
(<i>Requires [Git](https://git-scm.com/) and [Python](https://www.python.org/downloads/). Optionally, you may want to use a [Python virtual environment](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md) to isolate Python dependencies between projects.</i>)
9+
(<i>Requires [Git](https://git-scm.com/) and [Python](https://www.python.org/downloads/) [<img src="https://img.shields.io/badge/python-2.7,_3.x-22AADD.svg" alt="Python versions" />](https://www.python.org/downloads/). Optionally, you may want to use a [Python virtual environment](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md) to isolate Python dependencies between projects.</i>)
1010

1111
#### Clone SeleniumBase from GitHub:
1212
```
@@ -26,6 +26,7 @@ pip install -U -r requirements.txt
2626
python setup.py install
2727
```
2828
* (Use ``python setup.py develop`` if configuring seleniumbase inside a virtual environment.)
29+
* (You can also get seleniumbase from the Python Package Index, [<img src="https://img.shields.io/badge/pypi-seleniumbase-22AAEE.svg" alt="pypi" />](https://pypi.python.org/pypi/seleniumbase))
2930

3031
#### Install a web driver to the [seleniumbase/drivers](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/drivers) folder:
3132
```
@@ -151,7 +152,7 @@ pip install -r requirements.txt --upgrade
151152
python setup.py install
152153
```
153154

154-
If you're installing SeleniumBase from the [Python Package Index](https://pypi.python.org/pypi/seleniumbase), use:
155+
If you're installing SeleniumBase from the [Python Package Index](https://pypi.python.org/pypi/seleniumbase) [<img src="https://img.shields.io/badge/pypi-seleniumbase-22AAEE.svg" alt="pypi" />](https://pypi.python.org/pypi/seleniumbase), use:
155156
```
156157
pip install -U seleniumbase --no-cache-dir
157158
```
@@ -729,11 +730,14 @@ Now you can parse through the email if you're looking for specific text or want
729730

730731
### <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> Wrap-Up
731732

732-
Congratulations on getting started with SeleniumBase!
733+
#### Congratulations on getting started with SeleniumBase!
733734

734735
<i>**Questions or Comments?**</i><br />
735736
[![Join the chat at https://gitter.im/seleniumbase/SeleniumBase](https://badges.gitter.im/seleniumbase/SeleniumBase.svg)](https://gitter.im/seleniumbase/SeleniumBase?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)<br />
736737

738+
If you see something, say something! We are very active in resolving issues. [<img src="https://img.shields.io/github/issues-closed-raw/seleniumbase/SeleniumBase.svg" alt="Closed Issues" />](https://github.com/seleniumbase/SeleniumBase/issues?q=is%3Aissue+is%3Aclosed)
739+
737740
[https://github.com/mdmintz](https://github.com/mdmintz)<br />
738741

739742
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/SB_Logo3g4.png" title="SeleniumBase" height="45">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md) <br /> <img src="https://cdn2.hubspot.net/hubfs/100006/images/logo_base_4b.png" title="SeleniumBase" height="150">
743+
[<img src="http://img.shields.io/badge/license-MIT-22BBCC.svg" alt="MIT License" />](https://github.com/seleniumbase/SeleniumBase/blob/master/LICENSE)

examples/tour_examples/ReadMe.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## SeleniumBase Website Tours
22

3-
SeleniumBase Tours utilize your choice of 4 different Javascript libraries for creating & running tours, demos, and walkthroughs on any website: **[Shepherd](https://shipshapecode.github.io/shepherd/docs/welcome/)**, **[Bootstrap Tour](http://bootstraptour.com/)**, **[IntroJS](https://introjs.com/)**, and **[Hopscotch](http://linkedin.github.io/hopscotch/)**. Choose your favorite one to use!
3+
SeleniumBase Tours utilize your choice of 4 different JavaScript libraries for creating & running tours, demos, and walkthroughs on any website: **[Shepherd](https://shipshapecode.github.io/shepherd/docs/welcome/)**, **[Bootstrap Tour](http://bootstraptour.com/)**, **[IntroJS](https://introjs.com/)**, and **[Hopscotch](http://linkedin.github.io/hopscotch/)**. Choose your favorite one to use!
44

55
Example tour:
66

@@ -9,33 +9,33 @@ Example tour:
99

1010
### Creating a new tour:
1111

12-
By default, Shepherd JS is used when creating a tour with:
12+
#### To create a tour utilizing the Shepherd JS Library, use one of the following:
1313

14-
``self.create_tour()``
14+
``self.create_shepherd_tour()``
1515

16-
You can also do:
16+
OR
1717

18-
``self.create_shepherd_tour()``
18+
``self.create_tour(theme="shepherd")``
1919

20-
With the ``create_tour()`` and ``create_shepherd_tour()`` methods, you can pass a default theme to change the look & feel of the tour steps. Valid themes for Shepherd Tours are ``dark``, ``light`` / ``arrows``, ``default``, ``square``, and ``square-dark``.
20+
You can pass a custom theme to change the look & feel of Shepherd tours. Valid themes for Shepherd Tours are ``dark``, ``light`` / ``arrows``, ``default``, ``square``, and ``square-dark``.
2121

22-
To create a tour utilizing the Bootstrap Tour Library, you can use either of the following:
22+
#### To create a tour utilizing the Bootstrap Tour Library, use one of the following:
2323

2424
``self.create_bootstrap_tour()``
2525

2626
OR
2727

2828
``self.create_tour(theme="bootstrap")``
2929

30-
To create a tour utilizing the Intro JS Library, you can use either of the following:
30+
#### To create a tour utilizing the Intro JS Library, use one of the following:
3131

3232
``self.create_introjs_tour()``
3333

3434
OR
3535

3636
``self.create_tour(theme="introjs")``
3737

38-
To create a tour utilizing the Hopscotch JS Library, you can use either of the following:
38+
#### To create a tour utilizing the Hopscotch JS Library, use one of the following:
3939

4040
``self.create_hopscotch_tour()``
4141

@@ -45,7 +45,7 @@ OR
4545

4646
### Adding a step to a tour:
4747

48-
To add a tour step, use the following: (Only ``message`` is required. The other args are optional.)
48+
#### To add a tour step, use the following:
4949

5050
``self.add_tour_step(message, css_selector, title, alignment, theme)``
5151

@@ -100,12 +100,12 @@ pytest google_tour.py
100100

101101
### Exporting a Tour:
102102

103-
If you want to save the tour you created as a Javascript file, use:
103+
If you want to save the tour you created as a JavaScript file, use:
104104

105105
``self.export_tour()``
106106

107107
OR
108108

109109
``self.export_tour(name=None, filename="my_tour.js")``
110110

111-
(``name`` is optional, needed only if you were creating multiple tours at once. ``filename`` is the name of the file to save the Javascript to.) Once you've exported your tour, you can use it outside of SeleniumBase. You can even copy the tour's Javascript code to the Console of your web browser to play the tour from there (you need to be on the correct web page for it to work).
111+
(``name`` is optional unless you gave custom names to your tours when you created them. ``filename`` is the name of the file to save the JavaScript to.) Once you've exported your tour, you can use it outside of SeleniumBase. You can even copy the tour's JavaScript code to the Console of your web browser to play the tour from there (you need to be on the correct web page for it to work).

install.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@ECHO OFF
2+
python -m pip install --upgrade pip
3+
pip install -e . --upgrade --no-cache-dir --progress-bar off
4+
seleniumbase install chromedriver
5+
seleniumbase install geckodriver

install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
python -m pip install --upgrade pip
3+
pip install -e . --upgrade --no-cache-dir --progress-bar off
4+
seleniumbase install chromedriver
5+
seleniumbase install geckodriver

seleniumbase/console_scripts/logo_helper.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,48 @@
1515

1616
def get_seleniumbase_logo():
1717
colorama.init(autoreset=True)
18-
c1 = colorama.Fore.BLUE + colorama.Back.CYAN
19-
c2 = colorama.Fore.CYAN + colorama.Back.BLUE
18+
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
19+
c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
20+
c3 = colorama.Back.CYAN
21+
c4 = colorama.Back.GREEN
2022
cr = colorama.Style.RESET_ALL
2123
sb = " "
22-
sb += c1
24+
sb += cr
2325
sb += "\n"
2426
sb += c1
2527
sb += " ______ __ _ "
2628
sb += c2
2729
sb += "____ "
28-
sb += c1
30+
sb += cr
2931
sb += "\n"
3032
sb += c1
3133
sb += " / ____/__ / /__ ____ (_)_ ______ ___ "
3234
sb += c2
3335
sb += "/ __ `____ ________ "
34-
sb += c1
36+
sb += cr
3537
sb += "\n"
3638
sb += c1
3739
sb += " \\__ \\/ _ \\/ / _ \\/ __ \\/ / / / / __ `__ \\"
3840
sb += c2
3941
sb += "/ /_/ / __ `/ ___/ _ \\"
40-
sb += c1
42+
sb += cr
4143
sb += "\n"
4244
sb += c1
4345
sb += " ___/ / __/ / __/ / / / / /_/ / / / / / "
4446
sb += c2
4547
sb += "/ /_) / /_/ (__ ) __/"
46-
sb += c1
48+
sb += cr
4749
sb += "\n"
4850
sb += c1
4951
sb += "/____/\\___/_/\\___/_/ /_/_/\\__,_/_/ /_/ /_"
5052
sb += c2
5153
sb += "/_____/\\__,_/____/\\___/ "
52-
sb += c1
54+
sb += cr
5355
sb += "\n"
54-
sb += c1
55-
sb += " "
56-
sb += c2
57-
sb += " "
58-
sb += c1
56+
sb += c3
57+
sb += " "
58+
sb += c4
59+
sb += " "
60+
sb += cr
5961
sb += cr
6062
return sb

seleniumbase/console_scripts/run.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ def show_usage():
2727
show_basic_usage()
2828
print('Type "seleniumbase --help" for details on all commands.')
2929
print('Type "seleniumbase help [COMMAND]" for specific command info.')
30-
print('Type "pytest [FILE_OR_DIR]" to run tests in the given location.')
31-
print('Type "pytest --help" to learn more about running tests.\n')
30+
print('Use "pytest" for running tests.\n')
3231

3332

3433
def show_basic_usage():
@@ -38,15 +37,14 @@ def show_basic_usage():
3837
print('Usage: "seleniumbase [COMMAND] [PARAMETERS]"')
3938
print(' * (Example: "seleniumbase install chromedriver")')
4039
print("")
41-
print("Commands with parameters:")
42-
print("")
43-
print(" seleniumbase")
44-
print(" install [DRIVER_NAME]")
45-
print(" mkdir [NEW_TEST_DIRECTORY_NAME]")
46-
print(" convert [PYTHON_WEBDRIVER_UNITTEST_FILE]")
47-
print(" download server")
48-
print(" grid-hub {start|stop|restart} [OPTIONS]")
49-
print(" grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]")
40+
print("Commands:")
41+
print(" seleniumbase")
42+
print(" install [DRIVER_NAME]")
43+
print(" mkdir [NEW_TEST_DIRECTORY_NAME]")
44+
print(" convert [PYTHON_WEBDRIVER_UNITTEST_FILE]")
45+
print(" download server")
46+
print(" grid-hub {start|stop|restart} [OPTIONS]")
47+
print(" grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]")
5048
print("")
5149

5250

@@ -104,7 +102,7 @@ def show_download_usage():
104102
print("")
105103
print(" Usage:")
106104
print(" seleniumbase download [ITEM]")
107-
print(" (Options: server")
105+
print(" (Choices: server)")
108106
print(" Example:")
109107
print(" seleniumbase download server")
110108
print(" Output:")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='seleniumbase',
20-
version='1.17.12',
20+
version='1.17.13',
2121
description='All-in-One Test Automation Framework',
2222
long_description=long_description,
2323
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)