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
<h4align="center">Better Web Testing with <ahref="https://www.selenium.dev/documentation/"target="_blank">Selenium</a> and <ahref="https://docs.pytest.org/en/stable/"target="_blank">pytest</a>.</h4>
10
+
11
+
<divalign="center">A <b>Python</b> ecosystem for <ahref="https://www.selenium.dev/documentation/"target="_blank">Selenium</a>. Supports <ahref="https://docs.pytest.org/en/stable/"target="_blank">pytest</a> and <ahref="https://behave.readthedocs.io/en/stable/index.html"target="_blank">behave-BDD</a>.</div>
<palign="left">↘️ An example test using the <code>BaseCase</code> class:</p>
50
+
<palign="left">↘️ Example test with the <b>BaseCase</b> class. Runs with <code>pytest</code> or <code>nosetests</code>. (<ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/ReadMe.md">Learn more</a>)</p>
<palign="left">↘️ An example of running a test: <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py">test_demo_site.py</a></p>
81
+
<palign="left">↘️ Example test with <b>behave-BDD</b> <ahref="https://behave.readthedocs.io/en/stable/gherkin.html">Gherkin</a> structure. Runs with <code>behave</code>. (<ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/behave_bdd/ReadMe.md">Learn more</a>)</p>
82
+
83
+
```bash
84
+
Feature: SeleniumBase scenarios for the RealWorld App
85
+
86
+
Scenario: Verify RealWorld App (log in / sign out)
87
+
Given Open "seleniumbase.io/realworld/login"
88
+
When Type "demo_user" into "#username"
89
+
And Type "secret_pass" into "#password"
90
+
And Do MFA "GAXG2MTEOR3DMMDG" into "#totpcode"
91
+
Then Assert exact text "Welcome!"in"h1"
92
+
And Highlight "img#image1"
93
+
And Click 'a:contains("This Page")'
94
+
And Save screenshot to logs
95
+
```
96
+
97
+
<palign="left">✅ An example of running a test: <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py">test_demo_site.py</a></p>
(The [behave_bdd/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/behave_bdd) folder can be found in the [examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) folder.)
0 commit comments