behave-framework/pytests/test_basic.py
Greg Gauthier 895d189302
Some checks failed
Execute / build (3.12) (push) Failing after 9s
Pylint / build (3.12) (push) Successful in 11s
debugging messages
2024-07-23 18:42:36 +01:00

36 lines
869 B
Python

import pytest
from browserdriver import BrowserDriver
@pytest.mark.firefox
def test_firefox_browser(headless):
bd = BrowserDriver().get("firefox", headless=headless)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()
@pytest.mark.chrome
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()
@pytest.mark.edge
def test_edge_browser(headless):
bd = BrowserDriver().get("edge", headless=headless)
bd.get('https://test.io')
assert bd.title == "Home | Test IO"
bd.quit()