behave-framework/pytests/test_basic.py
Greg Gauthier 4e3c267656
Some checks failed
Execute / build (3.12) (push) Failing after 24s
Pylint / build (3.12) (push) Successful in 10s
run the tests
2024-07-23 15:48:03 +01:00

33 lines
810 B
Python

import pytest
from browserdriver import BrowserDriver
def test_firefox_browser(headless):
bd = BrowserDriver().get("firefox", headless=headless)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()
def test_chrome_browser(headless):
bd = BrowserDriver().get("chrome", headless=headless)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()
@pytest.mark.skip(reason="Safari is not available")
def test_safari_browser():
bd = BrowserDriver().get("safari", headless=False)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()
def test_edge_browser(headless):
bd = BrowserDriver().get("edge", headless=headless)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()