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
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1125,7 +1125,7 @@ self.driver.find_elements("partial link text", "GitHub")
1125
1125
pytest --reruns=1 --reruns-delay=1
1126
1126
```
1127
1127
1128
-
<p>Additionally, you can use the <code>@retry_on_exception()</code> decorator to specifically retry failing methods. (First import: <code>from seleniumbase import decorators</code>) To learn more about SeleniumBase decorators, [click here](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/common).</p>
1128
+
<p>You can use the <code>@retry_on_exception()</code> decorator to retry failing methods. (First import: <code>from seleniumbase import decorators</code>). To learn more about SeleniumBase decorators, <a href="https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/common">click here</a>.</p>
* A powerful Python framework for browser automation and E2E UI testing.
9
9
* Includes [Recorder Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/recorder_mode.md) for instantly generating browser tests in Python.
Copy file name to clipboardExpand all lines: help_docs/how_it_works.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
3
3
<aid="how_seleniumbase_works"></a>
4
4
5
-
At the core, SeleniumBase works by extending [pytest](https://docs.pytest.org/en/latest/) as a direct plugin. SeleniumBase automatically spins up web browsers for tests (using [Selenium WebDriver](https://www.selenium.dev/documentation/webdriver/)), and then gives those tests access to the SeleniumBase libraries through the [BaseCase class](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py). Tests are also given access to [SeleniumBase command-line arguments](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md) and [SeleniumBase methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md), which provide additional functionality.
5
+
👁️🔎 At the core, SeleniumBase works by extending [pytest](https://docs.pytest.org/en/latest/) as a direct plugin. SeleniumBase automatically spins up web browsers for tests (using [Selenium WebDriver](https://www.selenium.dev/documentation/webdriver/)), and then gives those tests access to the SeleniumBase libraries through the [BaseCase class](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py). Tests are also given access to [SeleniumBase command-line arguments](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md) and [SeleniumBase methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md), which provide additional functionality.
6
6
7
-
(NOTE: pytest uses a feature called test discovery to automatically find and run Python methods that start with ``test_``from the file that you specified on the command line.)
7
+
👁️🔎 ``pytest`` uses a feature called test discovery to automatically find and run Python methods that start with ``test_``when those methods are located in Python files that start with ``test_`` or end with ``_test.py``.
8
8
9
-
The most common way of using SeleniumBase is by inheriting BaseCase:
9
+
👁️🔎 The most common way of using **SeleniumBase** is by inheriting ``BaseCase``:
10
10
11
11
```python
12
12
from seleniumbase import BaseCase
13
13
```
14
14
15
-
Then have your test classes inherit BaseCase:
15
+
Then have your test classes inherit ``BaseCase``:
16
16
17
17
```python
18
18
classMyTestClass(BaseCase):
@@ -40,7 +40,7 @@ class TestMFALogin(BaseCase):
40
40
41
41
(See the example, [test_mfa_login.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_mfa_login.py), for reference.)
42
42
43
-
The most common way of running SeleniumBase tests is with ``pytest``:
43
+
👁️🔎 Here are some examples of running tests with ``pytest``:
0 commit comments