behave-framework/pytests/test_basic.py
Greg Gauthier c33ed44780
Some checks failed
Execute / build (3.12) (push) Failing after 8s
Pylint / build (3.12) (push) Failing after 11s
attempted fix for msedge driver
2024-07-23 18:08:11 +01:00

38 lines
895 B
Python

import pytest
from browserdriver import BrowserDriver
from conftest import CWD
@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()