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
<h3><imgsrc="https://seleniumbase.io/img/sb_icon.png"title="SeleniumBase"width="30" /> Changing the User-Agent:</h3>
472
475
473
-
If you wish to change the User-Agent for your browser tests (Chrome and Firefox only), you can add ``--agent="USER AGENT STRING"`` as an argument on the command-line.
476
+
If you wish to change the User-Agent for your browser tests (Chromium and Firefox only), you can add ``--agent="USER AGENT STRING"`` as an argument on the command-line.
#### This example is from [test_line_chart.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/chart_maker/test_line_chart.py), which you can run from the ``examples/chart_maker`` folder with the following command:
77
+
This example is from [test_line_chart.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/chart_maker/test_line_chart.py), which you can run from the ``examples/chart_maker`` folder with the following command:
78
78
79
79
```bash
80
80
pytest test_line_chart.py
@@ -83,7 +83,7 @@ pytest test_line_chart.py
83
83
Because that presentation above has an ``interval`` set to ``8``, it will automatically advance to the next slide after 8 seconds. (Or exit if there are no more slides.)
84
84
85
85
86
-
### For a more advanced example (multiple charts in a presentation):
86
+
<h3><imgsrc="https://seleniumbase.io/img/sb_icon.png"title="SeleniumBase"width="24" /> For a more advanced example (multiple charts in a presentation):</h3>
87
87
88
88
```python
89
89
from seleniumbase import BaseCase
@@ -138,7 +138,7 @@ pytest chart_presentation.py
138
138
Multi-Series charts can also be created. Try the available examples to learn more.
#### This example is from [my_presentation.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/presenter/my_presentation.py), which you can run from the ``examples/presenter`` folder with the following command:
230
+
That example is from [my_presentation.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/presenter/my_presentation.py), which you can run from the ``examples/presenter`` folder with the following command:
213
231
214
232
```bash
215
233
pytest my_presentation.py
216
234
```
217
235
218
-
### Saving a presentation:
236
+
<h3><imgsrc="https://seleniumbase.io/img/sb_icon.png"title="SeleniumBase"width="24" /> Saving a presentation:</h3>
219
237
220
238
If you want to save the presentation you created as an HTML file, use:
#### This example is from [test_line_chart.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/chart_maker/test_line_chart.py), which you can run from the ``examples/chart_maker`` folder with the following command:
77
+
This example is from [test_line_chart.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/chart_maker/test_line_chart.py), which you can run from the ``examples/chart_maker`` folder with the following command:
78
78
79
79
```bash
80
80
pytest test_line_chart.py
@@ -83,7 +83,7 @@ pytest test_line_chart.py
83
83
Because that presentation above has an ``interval`` set to ``8``, it will automatically advance to the next slide after 8 seconds. (Or exit if there are no more slides.)
84
84
85
85
86
-
### For a more advanced example (multiple charts in a presentation):
86
+
<h3><imgsrc="https://seleniumbase.io/img/sb_icon.png"title="SeleniumBase"width="24" /> For a more advanced example (multiple charts in a presentation):</h3>
87
87
88
88
```python
89
89
from seleniumbase import BaseCase
@@ -138,7 +138,7 @@ pytest chart_presentation.py
138
138
Multi-Series charts can also be created. Try the available examples to learn more.
Copy file name to clipboardExpand all lines: help_docs/how_it_works.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
<aid="how_seleniumbase_works"></a>
4
4
<h2><imgsrc="https://seleniumbase.io/img/sb_icon.png"title="SeleniumBase"width="30" /> How it works:</h2>
5
5
6
-
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, 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/seleniumbase/plugins/pytest_plugin.py) and [SeleniumBase methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md), which provide additional functionality.
6
+
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, 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.
7
7
8
8
(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.)
0 commit comments