Skip to content

Commit

Permalink
Add test for Safari remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Medvedev committed Dec 14, 2023
1 parent f1cdc99 commit 601bc53
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_webdriver_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,21 @@ def test_support_with_statement(self):
def test_should_be_able_to_change_user_agent(self):
"Remote should not support custom user agent"
pass

class RemoteBrowserSafariTest(WebDriverTests, unittest.TestCase):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = Browser("remote", browser="safari")
request.addfinalizer(request.cls.browser.quit)

def setUp(self):
self.browser.visit(EXAMPLE_APP)

def test_support_with_statement(self):
"Remote should support with statement"
with Browser("remote"):
pass

def test_should_be_able_to_change_user_agent(self):
"Remote should not support custom user agent"
pass

0 comments on commit 601bc53

Please sign in to comment.