Skip to content

Commit 3f2492d

Browse files
committed
Add an example that pulls in the sb fixture during a test
1 parent a5c99fe commit 3f2492d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/test_request_sb_fixture.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def test_request_sb_fixture(request):
2+
sb = request.getfixturevalue('sb')
3+
sb.open("https://seleniumbase.io/demo_page")
4+
sb.assert_text("SeleniumBase", "#myForm h2")
5+
sb.assert_element("input#myTextInput")
6+
sb.type("#myTextarea", "This is me")
7+
sb.click("#myButton")
8+
sb.tearDown()

0 commit comments

Comments
 (0)