Skip to content

Commit e92538f

Browse files
committed
Update the docs
1 parent 56f7c62 commit e92538f

File tree

11 files changed

+52
-46
lines changed

11 files changed

+52
-46
lines changed

examples/ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<a align="center" href="https://github.com/seleniumbase/SeleniumBase/blob/master/README.md"><img align="center" src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb8.png" alt="SeleniumBase" height="46" /></a>
1+
<a align="center" href="https://github.com/seleniumbase/SeleniumBase/blob/master/README.md"><img align="center" src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb8.png" alt="SeleniumBase" height="48" /></a>
22

3-
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3.png" title="SeleniumBase" height="32"> Running Example Tests:
3+
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Running Example Tests:
44

55
SeleniumBase tests are run with **``pytest``**. Chrome is the default browser if not specifed. During test failures, logs and screenshots from the latest run are saved to the ``latest_logs/`` folder.
66

examples/example_logs/ReadMe.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
### <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3.png" title="SeleniumBase" height="32"> Logging, Screenshots, and Reports:
1+
<a align="center" href="https://github.com/seleniumbase/SeleniumBase/"><img align="center" src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb.png" title="SeleniumBase" height="48" /></a>
2+
3+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Logging, Screenshots, and Reports:
24

35
Log files in [SeleniumBase/examples/example_logs](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/example_logs) were generated when [test_fail.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_fail.py) ran and failed. During test failures, logs and screenshots get saved to the ``latest_logs/`` folder. If ``--archive-logs`` is set, test logs will get archived to the ``archived_logs/`` folder.
46

@@ -9,32 +11,34 @@ nosetests test_fail.py --browser=firefox
911
```
1012

1113
<b>Examples of expected log files generated during failures:</b>
12-
* [basic_test_info.txt](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/basic_test_info.txt)
13-
* [page_source.html](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/page_source.html)
14-
* [screenshot.png](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/screenshot.png)
14+
<ul>
15+
<li><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/basic_test_info.txt">basic_test_info.txt</a></li>
16+
<li><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/page_source.html">page_source.html</a></li>
17+
<li><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/screenshot.png">screenshot.png</a></li>
18+
</ul>
1519

1620
--------
1721

1822
<b>In addition to logging, you can also generate test reports:</b>
1923

2024
Reports are most useful when running large test suites. Pytest and Nosetest reports are handled differently.
2125

22-
### Pytest Reports:
26+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Pytest Reports:
2327

2428
Using ``--html=report.html`` gives you a fancy report of the name specified after your test suite completes.
2529

2630
```bash
2731
pytest test_suite.py --html=report.html
2832
```
29-
![](https://cdn2.hubspot.net/hubfs/100006/images/PytestReport.png "Example Pytest Report")
33+
<img src="https://cdn2.hubspot.net/hubfs/100006/images/pytest_report_2.png" alt="Example Pytest Report" title="Example Pytest Report">
3034

31-
### Nosetest Reports:
35+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Nosetest Reports:
3236

3337
The ``--report`` option gives you a fancy report after your test suite completes. (Requires ``--with-testing_base`` to also be set when ``--report`` is used because it's part of that plugin.)
3438

3539
```bash
3640
nosetests test_suite.py --report --browser=chrome
3741
```
38-
<img src="https://cdn2.hubspot.net/hubfs/100006/images/Test_Report_2.png" title="Example Nosetest Report" height="420">
42+
<img src="https://cdn2.hubspot.net/hubfs/100006/images/Test_Report_2.png" alt="Example Nosetest Report" title="Example Nosetest Report" height="420">
3943

40-
(NOTE: You can add ``--show_report`` to immediately display Nosetest reports after the test suite completes. Only use ``--show_report`` when running tests locally because it pauses the test run.)
44+
(NOTE: You can add ``--show_report`` to immediately display Nosetest reports after the test suite completes. Only use ``--show_report`` when running tests locally because it pauses the test run.)

examples/translations/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h3 align="left"><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_m.png" title="SeleniumBase" height="48" /></a></h3>
22

3-
### <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3.png" title="SeleniumBase" height="32"> Multi-Language Tests (Python 3 Only!)
3+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Multi-Language Tests (Python 3 Only!)
44

55
<b>SeleniumBase</b> supports the following 10 languages:
66
<ul>

help_docs/ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://cdn2.hubspot.net/hubfs/100006/images/sb_media_logo.png" alt="SeleniumBase" height="114" /></a></div>
22

3-
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3.png" title="SeleniumBase" height="32"> Help Documents
3+
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Help Documents
44

55
<div><b>Table of Contents / Navigation:</b></div>
66
<div><a href="https://seleniumbase.io/help_docs/features_list/"><b>SeleniumBase Features List</b></a></div>
@@ -13,7 +13,7 @@
1313
<div><a href="https://seleniumbase.io/help_docs/customizing_test_runs/"><b>The Command Line Tutorial</b></a></div>
1414
<div><a href="https://seleniumbase.io/seleniumbase/console_scripts/ReadMe/"><b>The Console Scripts Tutorial</b></a></div>
1515
<div><a href="https://seleniumbase.io/help_docs/mobile_testing/"><b>Mobile Device Testing</b></a></div>
16-
<div><a href="https://seleniumbase.io/help_docs/method_summary/"><b>Method Summary Overview</b></a></div>
16+
<div><a href="https://seleniumbase.io/help_docs/method_summary/"><b>Method Summary (API Ref)</b></a></div>
1717
<div><a href="https://seleniumbase.io/help_docs/translations/"><b>Language Translations</b></a></div>
1818
<div><a href="https://seleniumbase.io/examples/tour_examples/ReadMe/"><b>Tour Examples</b></a></div>
1919
<div><a href="https://seleniumbase.io/help_docs/mysql_installation/"><b>MySQL Installation Overview</b></a></div>

help_docs/customizing_test_runs.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb.png" title="SeleniumBase" height="48">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
22

3-
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3.png" title="SeleniumBase" height="32"> Customizing test runs
3+
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Customizing test runs
44

55
You can customize test runs from the command-line thanks to [SeleniumBase's pytest plugin](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/pytest_plugin.py), which adds command-line options for setting/enabling the browser type, headless mode, mobile mode, multithreading mode, demo mode, proxy config, user agent config, browser extensions, and more.
66

@@ -134,14 +134,16 @@ SeleniumBase provides additional Pytest command-line options for tests:
134134
```
135135
(For more details, see the full list of command-line options **[here](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/pytest_plugin.py)**.)
136136

137-
#### **Customizing default settings:**
137+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Customizing default settings:
138138

139139
An easy way to override [seleniumbase/config/settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) is by using a custom settings file.
140140
Here's the command-line option to add to tests: (See [examples/custom_settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/custom_settings.py))
141141
``--settings-file=custom_settings.py``
142142
(Settings include default timeout values, a two-factor auth key, DB credentials, S3 credentials, and other important settings used by tests.)
143143

144-
#### **Running tests on [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid, the [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium) Selenium Grid, the [TestingBot](https://testingbot.com/features) Selenium Grid, another grid, or your own:**
144+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Running tests on a remote Selenium Grid:
145+
146+
SeleniumBase lets you run tests on remote Selenium Grids such as [BrowserStack](https://www.browserstack.com/automate#)'s Selenium Grid, [Sauce Labs](https://saucelabs.com/products/open-source-frameworks/selenium)'s Selenium Grid, [TestingBot](https://testingbot.com/features)'s Selenium Grid, other Grids, and even your own Grid:
145147

146148
(For setting browser desired capabilities while running Selenium remotely, see the ReadMe located here: https://github.com/seleniumbase/SeleniumBase/tree/master/examples/capabilities)
147149

@@ -172,14 +174,14 @@ pytest my_first_test.py --server=USERNAME:[email protected] --port=80
172174

173175
Or you can create your own Selenium Grid for test distribution. ([See this ReadMe for details](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md))
174176

175-
#### **Example tests using Logging:**
177+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Example tests using Logging:
176178

177179
```bash
178180
pytest test_suite.py --browser=chrome
179181
```
180182
(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), otherwise log files with be cleaned up at the start of the next test run.)
181183

182-
#### **Demo Mode:**
184+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Demo Mode:
183185

184186
If any test is moving too fast for your eyes to see what's going on, you can run it in **Demo Mode** by adding ``--demo`` on the command line, which pauses the browser briefly between actions, highlights page elements being acted on, and lets you know what test assertions are happening in real time:
185187

@@ -193,22 +195,22 @@ You can override the default wait time by either updating [settings.py](https://
193195
pytest my_first_test.py --demo --demo-sleep=1.2
194196
```
195197

196-
#### **Passing additional data to tests:**
198+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Passing additional data to tests:
197199

198200
If you want to pass additional data from the command line to your tests, you can use ``--data=STRING``. Now inside your tests, you can use ``self.data`` to access that.
199201

200-
#### **Running tests multithreaded:**
202+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Running tests multithreaded:
201203

202204
To run Pytest multithreaded on multiple CPUs at the same time, add ``-n=NUM`` or ``-n NUM`` on the command line, where NUM is the number of CPUs you want to use.
203205

204-
#### **Retrying failing tests automatically:**
206+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Retrying failing tests automatically:
205207

206208
You can use ``--reruns=NUM`` to retry failing tests that many times. Use ``--reruns-delay=SECONDS`` to wait that many seconds between retries. Example:
207209
```
208210
pytest --reruns=2 --reruns-delay=1
209211
```
210212

211-
#### **Debugging tests:**
213+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Debugging tests:
212214

213215
**You can use the following code snippets in your scripts to help you debug issues:**
214216
```python
@@ -225,27 +227,27 @@ pytest my_first_test.py --pdb -s
225227

226228
The code above will leave your browser window open in case there's a failure. (ipdb commands: 'c', 's', 'n' => continue, step, next).
227229

228-
#### **Pytest Reports:**
230+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Pytest Reports:
229231

230232
Using ``--html=report.html`` gives you a fancy report of the name specified after your test suite completes.
231233

232234
```bash
233235
pytest test_suite.py --html=report.html
234236
```
235-
![](https://cdn2.hubspot.net/hubfs/100006/images/PytestReport.png "Example Pytest Report")
237+
<img src="https://cdn2.hubspot.net/hubfs/100006/images/pytest_report_2.png" alt="Example Pytest Report" title="Example Pytest Report">
236238

237-
#### **Nosetest Reports:**
239+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Nosetest Reports:
238240

239241
The ``--report`` option gives you a fancy report after your test suite completes.
240242

241243
```bash
242244
nosetests test_suite.py --report
243245
```
244-
<img src="https://cdn2.hubspot.net/hubfs/100006/images/Test_Report_2.png" title="Example Nosetest Report" height="420">
246+
<img src="https://cdn2.hubspot.net/hubfs/100006/images/Test_Report_2.png" alt="Example Nosetest Report" title="Example Nosetest Report" height="420">
245247

246248
(NOTE: You can add ``--show_report`` to immediately display Nosetest reports after the test suite completes. Only use ``--show_report`` when running tests locally because it pauses the test run.)
247249

248-
#### **Using a Proxy Server:**
250+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Using a Proxy Server:
249251

250252
If you wish to use a proxy server for your browser tests (Chrome and Firefox only), you can add ``--proxy=IP_ADDRESS:PORT`` as an argument on the command line.
251253

@@ -265,15 +267,15 @@ To make things easier, you can add your frequently-used proxies to PROXY_LIST in
265267
pytest proxy_test.py --proxy=proxy1
266268
```
267269

268-
#### **Changing the User-Agent:**
270+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Changing the User-Agent:
269271

270272
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.
271273

272274
```bash
273275
pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1.7412.EU"
274276
```
275277

276-
#### **Mobile Device Testing:**
278+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Mobile Device Testing:
277279

278280
Use ``--mobile`` to quickly run your tests using Chrome's mobile device emulator with default values for device metrics (CSS Width, CSS Height, Pixel-Ratio) and a default value set for the user agent. To configure the mobile device metrics, use ``--metrics="CSS_Width,CSS_Height,Pixel_Ratio"`` to set those values. You'll also be able to set the user agent with ``--agent="USER-AGENT-STRING"`` (a default user agent will be used if not specified). To find real values for device metrics, [see this GitHub Gist](https://gist.github.com/sidferreira/3f5fad525e99b395d8bd882ee0fd9d00). For a list of available user agent strings, [check out this page](https://developers.whatismybrowser.com/useragents/explore/).
279281

help_docs/method_summary.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/SeleniumBaseText_F.png" title="SeleniumBase" align="center" height="46">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
2-
## Method Summary Overview
2+
3+
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Method Summary (API Reference)
34

45
Here's a summary of SeleniumBase method definitions, which are defined in [base_case.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py)
56

mkdocs.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
site_name: SeleniumBase
33
site_url: https://seleniumbase.io
44
site_author: Michael Mintz
5-
site_description: >-
6-
Create browser tests for web and mobile user interfaces.
7-
Uses Python and pytest to execute commands and run tests.
5+
site_description: Test Automation Framework
86
# Repository information
97
repo_name: seleniumbase/SeleniumBase
108
repo_url: https://github.com/seleniumbase/SeleniumBase
@@ -20,7 +18,6 @@ markdown_extensions:
2018
- markdown.extensions.codehilite
2119
- markdown.extensions.def_list
2220
- markdown.extensions.footnotes
23-
- markdown.extensions.meta
2421
- markdown.extensions.toc:
2522
permalink: true
2623
# Configuration
@@ -32,11 +29,14 @@ theme:
3229
sticky_navigation: true
3330
features:
3431
- tabs
32+
palette:
33+
primary: indigo
34+
accent: indigo
3535
# Plugins
3636
plugins:
3737
- search
3838
- minify:
39-
minify_html: true
39+
minify_html: false
4040
- mkdocs-simple-hooks:
4141
hooks:
4242
on_pre_build: docs.prepare:main
@@ -73,10 +73,9 @@ nav:
7373
- Recorder and Exporting: seleniumbase/utilities/selenium_ide/ReadMe.md
7474
- Help Docs ToC:
7575
- Table of Contents: help_docs/ReadMe.md
76-
- API Reference: help_docs/method_summary.md
7776
- Master QA: seleniumbase/masterqa/ReadMe.md
7877
- Decorators & Security: seleniumbase/common/ReadMe.md
7978
- Using Safari Driver: help_docs/using_safari_driver.md
8079
- macOS Hidden Files: help_docs/hidden_files_info.md
81-
- Happy Customers: help_docs/happy_customers.md
80+
- Case Studies: help_docs/happy_customers.md
8281
- Thank You: help_docs/thank_you.md

seleniumbase/console_scripts/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_q.png" title="SeleniumBase" height="48">
22

3-
## <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png" title="SeleniumBase" height="32"> Console Scripts
3+
## <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> Console Scripts
44

55
SeleniumBase console scripts help you get things done more easily, such as installing web drivers, creating a test directory with necessary configuration files, converting old WebDriver unittest scripts into SeleniumBase code, translating tests into multiple languages, and using the Selenium Grid.
66

seleniumbase/drivers/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png" title="SeleniumBase" height="32"> SeleniumBase webdriver storage
1+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> SeleniumBase webdriver storage
22

33
* You need a different webdriver 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.
44

seleniumbase/extensions/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### <img src="https://cdn2.hubspot.net/hubfs/100006/images/super_square_logo_3a.png" title="SeleniumBase" height="32"> SeleniumBase browser extension storage
1+
### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" height="30" /> SeleniumBase browser extension storage
22

33
**The List:**
44
* disable_csp.zip => Disable Chrome's Content-Security-Policy

0 commit comments

Comments
 (0)