Update the docs

This commit is contained in:
Michael Mintz 2021-10-03 00:21:01 -04:00
parent bed4069a10
commit 5e5252d447
6 changed files with 21 additions and 13 deletions

View File

@ -20,7 +20,7 @@ lunr==0.6.0;python_version>="3.6"
nltk==3.6.4;python_version>="3.6"
watchdog==2.1.6;python_version>="3.6"
mkdocs==1.2.2;python_version>="3.6"
mkdocs-material==7.3.0;python_version>="3.6"
mkdocs-material==7.3.1;python_version>="3.6"
mkdocs-exclude-search==0.5.2;python_version>="3.6"
mkdocs-simple-hooks==0.1.3
mkdocs-material-extensions==1.0.3;python_version>="3.6"

View File

@ -1,4 +1,4 @@
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="220">](https://github.com/seleniumbase/SeleniumBase/)
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Running Example Tests:</h2>

View File

@ -1,4 +1,4 @@
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="220">](https://github.com/seleniumbase/SeleniumBase/)
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
## pytest options for SeleniumBase

View File

@ -1,4 +1,4 @@
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="220">](https://github.com/seleniumbase/SeleniumBase/)
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Recorder Mode</h2>
@ -12,12 +12,14 @@
pytest TEST_NAME.py --recorder -s
```
🔴 To add your own actions inside the test, you'll need to create a breakpoint inside your test to activate Debug Mode:
🔴 To add manual actions, you'll need to create a breakpoint inside your test to activate "Debug Mode" while in "Recorder Mode": (For reference, "Debug Mode" is also known as the "ipdb debugger".)
```python
import ipdb; ipdb.set_trace()
```
🔴 The Recorder will capture browser actions on URLs that begin with ``https:``, ``http:``, and ``file:``. (The Recorder won't work on ``data:`` URLS.)
🔴 You can also activate Debug Mode at the start of your test by adding ``--trace`` as a ``pytest`` command-line option:
```bash
@ -58,7 +60,7 @@ class RecorderTest(BaseCase):
<p>🔴 (Note that <b>same domain/origin</b> is not the same as <b>same URL</b>. Example: <code>https://xkcd.com/353/</code> and <code>https://xkcd.com/1537/</code> are two different URLs with the <b>same domain/origin</b>. That means that both URLs will share the same <code>sessionStorage</code> data, and that any changes to <code>sessionStorage</code> from one URL will carry on to the <code>sessionStorage</code> of a different URL when the domain/origin is the same. If you want to find out a website's origin during a test, just call: <code>self.get_origin()</code>, which returns the value of <code>window.location.origin</code> from the browser's console.)</p>
<p>🔴 The launch of Recorder Mode has brought a new SeleniumBase method along with it: <code>self.open_if_not_url(URL)</code>. This method will open the URL given if the browser is not currently on that page. This is used as a method in recorded scripts when SeleniumBase detects that a click action has already brought the test to the given page. This method not only prevents an extra page load if not needed, but it also lets people know the current page of the browser at that point in the test.</p>
<p>🔴 The launch of Recorder Mode has brought a new SeleniumBase method along with it: <code>self.open_if_not_url(URL)</code>. This method will open the URL given if the browser is not currently on that page. This is used as a method in recorded scripts when SeleniumBase detects that a click action has already brought the test to the given page. This method not only prevents an extra page load if not needed, but it also lets people know the current page of the browser during that part of the test.</p>
<p>🔴 SeleniumBase <code>1.66.1</code> adds the ability to record changes to <i>"Choose File"</i> <code>input</code> fields. Sometimes the <i>"Choose File"</i> input field is hidden on websites, so <code>self.show_file_choosers()</code> was added to get around this edge case. Version <code>1.66.1</code> also adds <code>self.set_content_to_frame(frame)</code>, which lets you record actions inside of iframes.</p>
@ -72,6 +74,8 @@ class RecorderTest(BaseCase):
<p>🔴 SeleniumBase <code>1.66.6</code> adds more selector options and improves the algorithm for converting recorded actions into SeleniumBase code.</p>
<p>🔴 SeleniumBase <code>1.66.7</code> improves Recorder Mode post-processing and automatically adds <code>self.show_file_choosers()</code> if file-upload fields are hidden when calling <code>self.choose_file(selector, file_path)</code>.</p>
--------
<div>To learn more about SeleniumBase, check out the Docs Site:</div>

View File

@ -32,7 +32,7 @@ theme:
language: en
include_homepage_in_sidebar: true
sticky_navigation: true
# collapse_navigation: false
collapse_navigation: true
# titles_only: false
include_search_page: false
search_index_only: true
@ -43,9 +43,10 @@ theme:
- toc.integrate
- navigation.indexes
# - navigation.sections
# - navigation.expand
- navigation.expand
# - navigation.tabs
# - navigation.instant
- navigation.tracking
- navigation.instant
palette:
scheme: default
primary: blue
@ -59,7 +60,6 @@ theme:
plugins:
- search:
separator: '[\s]+'
prebuild_index: false
lang: en
- exclude-search:
exclude:
@ -107,9 +107,9 @@ nav:
- MasterQA: examples/master_qa/ReadMe.md
- Jenkins on Azure: integrations/azure/jenkins/ReadMe.md
- Jenkins on Google Cloud: integrations/google_cloud/ReadMe.md
- Katalon Recorder: integrations/katalon/ReadMe.md
- Old Recorder / Export: seleniumbase/utilities/selenium_ide/ReadMe.md
- NodeJS Test Runner: https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/node_js
- Katalon Recorder Export: integrations/katalon/ReadMe.md
- Selenium IDE Export: seleniumbase/utilities/selenium_ide/ReadMe.md
- Help Docs:
- Table of Contents: help_docs/ReadMe.md
- JS Package Manager: help_docs/js_package_manager.md

View File

@ -1,4 +1,4 @@
[<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
## Console Scripts
@ -345,3 +345,7 @@ You can start, restart, or stop the Grid Hub server.
Controls the Selenium Grid node, which serves as a
worker machine for your Selenium Grid Hub server.
You can start, restart, or stop the Grid node.
--------
[<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)