Skip to content

Commit 6968f83

Browse files
authored
Merge pull request #1023 from seleniumbase/update-recorder-mode
Update Recorder Mode
2 parents 484c8a2 + f1d8a85 commit 6968f83

18 files changed

+207
-85
lines changed

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ readme-renderer==30.0
1616
pymdown-extensions==9.0;python_version>="3.6"
1717
importlib-metadata==4.8.1;python_version>="3.6"
1818
bleach==4.1.0
19-
lunr==0.6.0;python_version>="3.6"
19+
lunr==0.6.1;python_version>="3.6"
2020
nltk==3.6.5;python_version>="3.6"
2121
watchdog==2.1.6;python_version>="3.6"
2222
mkdocs==1.2.3;python_version>="3.6"
23-
mkdocs-material==7.3.3;python_version>="3.6"
23+
mkdocs-material==7.3.4;python_version>="3.6"
2424
mkdocs-exclude-search==0.5.2;python_version>="3.6"
2525
mkdocs-simple-hooks==0.1.3
2626
mkdocs-material-extensions==1.0.3;python_version>="3.6"

examples/ReadMe.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Running Example Tests:</h2>
44

5-
<p align="left"><a align="center" href="https://github.com/seleniumbase/SeleniumBase/blob/master/README.md"><img align="center" src="https://seleniumbase.io/cdn/img/sb_demo_page.png" alt="SeleniumBase" width="420" /></a></p>
6-
5+
<p align="left"><a align="center" href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py"><img align="center" src="https://seleniumbase.io/cdn/img/sb_demo_page.png" alt="SeleniumBase Demo Page" width="420" /></a></p>
76

87
* <b>SeleniumBase</b> tests are run with <b>pytest</b>.
98
* Chrome is the default browser if not specified.

examples/test_docs_site.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from seleniumbase import BaseCase
2+
3+
4+
class DocsSiteTests(BaseCase):
5+
def test_docs(self):
6+
self.open("https://seleniumbase.io/")
7+
self.assert_exact_text("SeleniumBase ReadMe", "h1")
8+
self.click('a[href="help_docs/features_list/"]')
9+
self.assert_exact_text("Features List", "h1")
10+
self.click('a[href="../../examples/ReadMe/"]')
11+
self.assert_exact_text("Running Example Tests", "h1")
12+
self.click('a[href="../../help_docs/customizing_test_runs/"]')
13+
self.assert_exact_text("Command Line Options", "h1")
14+
self.click('a[href="../../examples/example_logs/ReadMe/"]')
15+
self.assert_exact_text("Dashboard / Reports", "h1")
16+
self.click('a[href="../../../seleniumbase/console_scripts/ReadMe/"]')
17+
self.assert_exact_text("Console Scripts", "h1")
18+
self.click('a[href="../../../help_docs/syntax_formats/"]')
19+
self.assert_exact_text("Syntax Formats", "h1")
20+
self.click('a[href="../recorder_mode/"]')
21+
self.assert_exact_text("Recorder Mode", "h1")
22+
self.click('a[href="../method_summary/"]')
23+
self.assert_exact_text("API Reference", "h1")
24+
self.click('img[alt="logo"]')
25+
self.assert_exact_text("SeleniumBase ReadMe", "h1")

examples/test_swag_labs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def test_swag_labs_basic_flow(self):
6060
# Finish Checkout and verify that the cart is now empty
6161
self.click("button#finish")
6262
self.assert_exact_text("THANK YOU FOR YOUR ORDER", "h2")
63-
self.assert_element("img.pony_express")
6463
self.click("#shopping_cart_container")
6564
self.assert_element_absent("div.inventory_item_name")
6665
self.click("button#continue-shopping")

help_docs/features_list.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="285">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
1+
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
22

33
<!-- YouTube View --><a href="https://www.youtube.com/watch?v=Sjzq9kU5kOw"><img src="http://img.youtube.com/vi/Sjzq9kU5kOw/0.jpg" title="SeleniumBase on YouTube" width="285" /></a>
44
<!-- GitHub Only --><p>(<b><a href="https://www.youtube.com/watch?v=Sjzq9kU5kOw">Watch the tutorial on YouTube</a></b>)</p>
@@ -45,3 +45,5 @@
4545

4646
<!-- YouTube View --><a href="https://www.youtube.com/watch?v=yEQeAU_mrg0"><img src="http://img.youtube.com/vi/yEQeAU_mrg0/0.jpg" title="SeleniumBase on YouTube" width="285" /></a>
4747
<!-- GitHub Only --><p>(<b><a href="https://www.youtube.com/watch?v=yEQeAU_mrg0">Have fun with test automation!</a></b>)</p>
48+
49+
[<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="285">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)

help_docs/happy_customers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [Veracode](https://www.veracode.com/)
88
* [Autodesk](https://www.autodesk.com/)
99
* [Broadcom](https://www.broadcom.com/)
10+
* [FortressIQ](https://www.fortressiq.com/)
1011
* [Thoma Bravo](https://www.thomabravo.com/)
1112
* [Expedia Group](https://lifeatexpediagroup.com/)
1213
* [Texture Health](https://www.texturehealth.com/)
@@ -35,8 +36,8 @@
3536
* [netLex](https://netlex.io/en/)
3637
* [Cubic](https://www.cubic.com/)
3738
* [Baidu](https://www.baidu.com/)
38-
* [Iver](https://www.iver.com/)
3939
* [HqO](https://www.hqo.co/)
40+
* [Iver](https://www.iver.com/)
4041
* And more...
4142

4243
<h3>Case Study: (<i>HubSpot</i>)</h3>

help_docs/method_summary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[<img src="https://seleniumbase.io/cdn/img/sb_text_f.png" title="SeleniumBase" align="center" width="360">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
1+
[<img src="https://seleniumbase.io/cdn/img/sb_logo_10t.png" title="SeleniumBase" width="240">](https://github.com/seleniumbase/SeleniumBase/)
22

33
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Methods (API Reference)</h2>
44

@@ -709,3 +709,5 @@ self._print(TEXT) # Calls Python's print() / Allows for translations
709709
* [test_suite.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_suite.py)
710710
* [test_tinymce.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_tinymce.py)
711711
* And many more...
712+
713+
[<img src="https://seleniumbase.io/cdn/img/sb_text_f.png" title="SeleniumBase" align="center" width="360">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)

help_docs/recorder_mode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class RecorderTest(BaseCase):
7474

7575
<p>🔴 SeleniumBase <code>1.66.14</code> improves the algorithm for converting recorded assertions into SeleniumBase code. Text assertions that contain the newline character will now be handled correctly. If a text assertion has a <code>:contains</code> selector, then the text assertion will be changed to an element assertion. Asserted text from multi-line assertions will use <code>self.assert_text()</code> on the first non-empty line. Asserted text from single-line assertions will use <code>self.assert_exact_text()</code>. Element assertions will be handled with <code>self.assert_element()</code>.</p>
7676

77+
<p>🔴 SeleniumBase <code>2.0.1</code> adds the ability to preview selectors via the page title when hovering over elements. It also fixes an issue that may occur when opening up new URLs while in Recorder Mode.</p>
78+
7779
--------
7880

7981
<div>To learn more about SeleniumBase, check out the Docs Site:</div>

help_docs/virtualenv_instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ There are multiple ways of creating a **[Python virtual environment](https://pac
1212
(The [Python Software Foundation](https://www.python.org/psf/) recommends ``venv`` for creating virtual environments.)
1313

1414

15-
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Part 1: Using "venv"</h3>
15+
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Option 1: Using "venv"</h3>
1616

1717
> macOS/Linux terminal (``python3 -m venv ENV``)
1818
@@ -32,7 +32,7 @@ To exit a virtual env, type ``deactivate``.
3232

3333
--------
3434

35-
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Part 2: Using virtualenvwrapper</h3>
35+
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Option 2: Using virtualenvwrapper</h3>
3636

3737
> macOS/Linux terminal:
3838

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ requests==2.25.1;python_version>="3.5" and python_version<"3.6"
3333
requests==2.26.0;python_version>="3.6"
3434
selenium==3.141.0;python_version<"3.7"
3535
selenium==4.0.0;python_version>="3.7"
36+
wsproto==1.0.0;python_version>="3.7"
3637
trio==0.19.0;python_version>="3.7"
3738
trio-websocket==0.9.2;python_version>="3.7"
3839
pyopenssl==21.0.0;python_version>="3.7"

0 commit comments

Comments
 (0)