Skip to content

Commit a5c99fe

Browse files
committed
Add another example that works offline
1 parent 92bb3c0 commit a5c99fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pytest
2+
3+
4+
@pytest.mark.offline
5+
def test_request_fixture(request):
6+
sb = request.getfixturevalue('sb')
7+
sb.open("data:text/html,<p>Hello<br><input></p>")
8+
sb.assert_element("html > body")
9+
sb.assert_text("Hello", "body p")
10+
sb.type("input", "Goodbye")
11+
sb.click("body p")
12+
sb.tearDown()

0 commit comments

Comments
 (0)