You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(<i>Above: [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) from [examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) in Demo Mode.</i>)<br />
21
-
```
20
+
(<i>Watch [examples/my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) run in Demo Mode:</i>)
You'll need **[Python](https://www.python.org/downloads/)** on your System PATH. [<imgsrc="https://img.shields.io/pypi/pyversions/seleniumbase.svg?logo=python&logoColor=gold"alt="Python versions"alt="Python versions" />](https://www.python.org/downloads/)
30
31
@@ -34,7 +35,7 @@ python -m easy_install -U pip
34
35
```
35
36
36
37
### <imgsrc="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png"title="SeleniumBase"height="32"> Setup a Virtual Environment: (Optional)
37
-
To isolate **python** dependencies between projects, use a Virtual Environment. See the **[ReadMe](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md)** for instructions. (<i>You can also read the official tutorial on virtual environments from **[python.org](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)**</i>)
38
+
To isolate **``python``** dependencies between projects, use a Virtual Environment. See the **[ReadMe](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md)** for instructions. (<i>You can also read the official tutorial on virtual environments from **[python.org](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)**</i>)
### <imgsrc="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png"title="SeleniumBase"height="32"> Run a test on Chrome:
68
69
```bash
69
-
cd examples
70
+
cd examples/
70
71
pytest my_first_test.py
71
72
```
72
73
* Chrome is the default browser if not specified with ``--browser=BROWSER``.
@@ -273,7 +274,7 @@ For running tests outside of the SeleniumBase repo with **Pytest**, you'll want
273
274
As a shortcut, you'll be able to run ``seleniumbase mkdir [DIRECTORY_NAME]`` to create a new folder that already contains necessary files and some example tests that you can run. Example:
274
275
```bash
275
276
seleniumbase mkdir ui_tests
276
-
cd ui_tests
277
+
cd ui_tests/
277
278
pytest my_first_test.py
278
279
```
279
280
@@ -655,11 +656,12 @@ Additionally, you can use the ``@retry_on_exception()`` decorator to specificall
655
656
656
657
#### Congratulations on getting started with SeleniumBase!
657
658
658
-
<i>**Questions or Comments?**</i><br />
659
-
[](https://gitter.im/seleniumbase/SeleniumBase?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)<br />
659
+
<i>**Questions?**</i> [](https://gitter.im/seleniumbase/SeleniumBase?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)<br />
660
660
661
-
If you see something, say something! We are very active in resolving issues. [<imgsrc="https://img.shields.io/github/issues-closed-raw/seleniumbase/SeleniumBase.svg"alt="" />](https://github.com/seleniumbase/SeleniumBase/issues?q=is%3Aissue+is%3Aclosed)
661
+
If you see something, say something! We're very active in resolving issues. [<imgsrc="https://img.shields.io/github/issues-closed-raw/seleniumbase/SeleniumBase.svg"alt="" />](https://github.com/seleniumbase/SeleniumBase/issues?q=is%3Aissue+is%3Aclosed)
Copy file name to clipboardExpand all lines: examples/ReadMe.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Running Example Tests
4
4
5
-
SeleniumBase tests can be run with either **pytest** or **nosetests**, but using pytest is strongly recommended. Chrome is the default browser if not specified.
5
+
SeleniumBase tests can be run with either **``pytest``** or **``nosetests``**, but using pytest is strongly recommended. Chrome is the default browser if not specified.
6
6
7
7
During test failures, logs and screenshots from the most recent test run will get saved to the ``latest_logs/`` folder. Those logs will get moved to ``archived_logs/`` if you have ARCHIVE_EXISTING_LOGS set to True in [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py)
8
8
@@ -106,3 +106,7 @@ To make things easier, here's a simple GUI program that allows you to run a few
106
106
python gui_test_runner.py
107
107
```
108
108
<imgsrc="https://cdn2.hubspot.net/hubfs/100006/images/gui_test_runner_py.png"title="GUI Test Runner"height="260">
0 commit comments