|
4 | 4 |
|
5 | 5 | Reliable Browser Automation & Testing with [Selenium-WebDriver](https://www.seleniumhq.org/) and [Pytest](https://docs.pytest.org/en/latest/). |
6 | 6 |
|
7 | | -<img src="https://cdn2.hubspot.net/hubfs/100006/sb_demo_mode.gif" title="SeleniumBase Example" height="152"><img src="https://cdn2.hubspot.net/hubfs/100006/images/Test_Report_2.png" title="Test Report Example" height="152"> |
| 7 | +<img src="https://cdn2.hubspot.net/hubfs/100006/sb_demo_mode.gif" title="SeleniumBase" height="270"><br /> |
| 8 | +``` |
| 9 | +pytest examples/my_first_test.py --demo_mode |
| 10 | +``` |
8 | 11 |
|
9 | 12 | ## <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> Quick Start: |
10 | 13 |
|
@@ -35,32 +38,19 @@ python setup.py install |
35 | 38 | seleniumbase install chromedriver |
36 | 39 | ``` |
37 | 40 |
|
| 41 | +* (You need a different web driver for each web browser you want to run automation on: ``chromedriver`` for Chrome, ``edgedriver`` for Edge, ``geckodriver`` for Firefox, ``operadriver`` for Opera, and ``iedriver`` for Internet Explorer.) |
| 42 | + |
38 | 43 | #### Run a test on Chrome: |
39 | 44 | ``` |
40 | 45 | cd examples |
41 | 46 | pytest my_first_test.py --browser=chrome |
42 | 47 | ``` |
43 | 48 |
|
44 | | -* (You need a different web driver for each web browser you want to run automation on: ``chromedriver`` for Chrome, ``edgedriver`` for Edge, ``geckodriver`` for Firefox, ``operadriver`` for Opera, and ``iedriver`` for Internet Explorer.) |
45 | | - |
46 | | -<img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> |
47 | | - |
48 | | -SeleniumBase has a very flexible [command line interface](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md) to change how your tests run. |
49 | | - |
50 | | -Try out Demo Mode to see what what's being tested in real time! (Chrome is the default browser if not specified.) |
51 | | - |
52 | | -``` |
53 | | -pytest my_first_test.py --demo_mode |
54 | | -``` |
55 | | - |
56 | | -<img src="https://cdn2.hubspot.net/hubfs/100006/sb_demo_mode.gif" title="SeleniumBase" height="270"><br> |
57 | | -(Above: Actual demo of [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) running on [xkcd.com](https://xkcd.com/353/)) |
58 | | - |
59 | | -There are <b>many more examples</b> to try out from the [SeleniumBase/examples](https://github.com/seleniumbase/SeleniumBase/blob/master/examples) folder, which you can run easily if you clone SeleniumBase. |
| 49 | +* (Chrome is the default browser if not specified with ``--browser``) |
60 | 50 |
|
61 | 51 | <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> |
62 | 52 |
|
63 | | -Check out [SeleniumBase Website Tours](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/tour_examples) (in the ``examples/tour_examples`` folder). It's the most efficient website onboarding experience available (and it's free too). Find the [Tours ReadMe here](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md). |
| 53 | +Check out [SeleniumBase Website Tours](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/tour_examples) (in the ``examples/tour_examples`` folder). It's great for prototyping a website onboarding experience. See the [Tours ReadMe](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md) for more details. |
64 | 54 |
|
65 | 55 | ``` |
66 | 56 | cd tour_examples |
@@ -182,7 +172,7 @@ seleniumbase install edgedriver |
182 | 172 | <a id="seleniumbase_basic_usage"></a> |
183 | 173 | ### <img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_logo_box2.png" title="SeleniumBase" height="32"> **Step 5:** Run the Example Script |
184 | 174 |
|
185 | | -**Here's what the example script looks like:** |
| 175 | +**Here's what the example script, [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py), looks like:** |
186 | 176 |
|
187 | 177 | ```python |
188 | 178 | from seleniumbase import BaseCase |
|
0 commit comments