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
<palign="center">SeleniumBase is a complete framework for web automation and end-to-end testing with <ahref="https://docs.pytest.org/en/latest/index.html">pytest</a>.<br />The API simplifies <ahref="https://www.selenium.dev/documentation/">Selenium</a>'s out-of-the-box API, leading to tests with more maintainable code. <br />SeleniumBase includes advanced features such as a realtime <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md">Dashboard</a>, a <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/recorder_mode.md">Recorder</a>, and more.</p>
21
+
<palign="center">SeleniumBase is a complete framework for web automation & end-to-end testing with <ahref="https://docs.pytest.org/en/latest/index.html">pytest</a>.<br />The API simplifies <ahref="https://www.selenium.dev/documentation/">Selenium</a>'s out-of-the-box API, which leads to more maintainable test code. <br />SeleniumBase includes advanced features such as a realtime <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md">Dashboard</a>, a <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/recorder_mode.md">Recorder</a>, & more.</p>
> (Chrome is the default browser if not specified with ``--browser=BROWSER``. On Linux, ``--headless`` is the default behavior. You can also run in headless mode on any OS. If your Linux machine has a GUI and you want to see the web browser as tests run, add ``--headed`` or ``--gui``.)
@@ -160,6 +160,12 @@ For more advanced run commands, such as using a proxy server, see [../help_docs/
160
160
161
161
--------
162
162
163
+
If you just need to perform some quick website verification on various devices, you can use the <ahref="https://seleniumbase.io/devices/">SeleniumBase Device Farm</a>. Just plug in a website URL, and it will display how the website looks on four different devices:
164
+
165
+
<ahref="https://seleniumbase.io/devices/"><imgsrc="https://seleniumbase.io/cdn/img/github_demo.png"width="540"title="SeleniumBase Mobile Mode" /></a><br />
166
+
167
+
--------
168
+
163
169
To make things easier, here's a simple GUI program that allows you to run a few example tests by pressing a button:
Copy file name to clipboardExpand all lines: help_docs/recorder_mode.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,18 @@
12
12
pytest TEST_NAME.py --recorder -s
13
13
```
14
14
15
-
🔴 To add your own actions inside the test, you'll need to create a breakpoint somewhere inside of it:
15
+
🔴 To add your own actions inside the test, you'll need to create a breakpoint inside your test to activate Debug Mode:
16
16
17
17
```python
18
18
import ipdb; ipdb.set_trace()
19
19
```
20
20
21
+
🔴 You can also activate Debug Mode at the start of your test by adding ``--trace`` as a ``pytest`` command-line option:
22
+
23
+
```bash
24
+
pytest TEST_NAME.py --trace -s
25
+
```
26
+
21
27
🔴 Once you've reached the breakpoint, you can take control of the browser and add in any actions that you want recorded. When you are finished recording, type "``c``" on the command-line and press ``[Enter]`` to let the test continue from the breakpoint. After the test completes, a file called ``TEST_NAME_rec.py`` will be automatically created in the ``./recordings`` folder, which will include the actions performed by the test, and the manual actions that you added in. Below is a command-line notification:
22
28
23
29
```bash
@@ -64,6 +70,8 @@ class RecorderTest(BaseCase):
64
70
65
71
<p>🔴 SeleniumBase <code>1.66.5</code> improves the algorithm for converting recorded actions into SeleniumBase code.</p>
66
72
73
+
<p>🔴 SeleniumBase <code>1.66.6</code> adds more selector options and improves the algorithm for converting recorded actions into SeleniumBase code.</p>
74
+
67
75
--------
68
76
69
77
<div>To learn more about SeleniumBase, check out the Docs Site:</div>
0 commit comments