33 lines
810 B
Python
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()
|