Add another example that works offline

This commit is contained in:
Michael Mintz 2020-08-28 01:38:22 -04:00
parent 92bb3c0b1c
commit a5c99fe8e3
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import pytest
@pytest.mark.offline
def test_request_fixture(request):
sb = request.getfixturevalue('sb')
sb.open("data:text/html,<p>Hello<br><input></p>")
sb.assert_element("html > body")
sb.assert_text("Hello", "body p")
sb.type("input", "Goodbye")
sb.click("body p")
sb.tearDown()