2020-10-09 17:34:54 +00:00
|
|
|
from browserdriver import BrowserDriver
|
2020-10-10 22:36:02 +00:00
|
|
|
import pytest
|
2020-10-09 17:34:54 +00:00
|
|
|
|
2020-10-14 22:24:01 +00:00
|
|
|
|
2020-10-10 21:40:06 +00:00
|
|
|
def test_firefox_browser(headless):
|
|
|
|
bd = BrowserDriver().get("firefox", headless=headless)
|
|
|
|
bd.get('https://test.io')
|
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
2020-10-09 17:34:54 +00:00
|
|
|
bd.quit()
|
|
|
|
|
|
|
|
|
2020-10-10 21:40:06 +00:00
|
|
|
def test_chrome_browser(headless):
|
|
|
|
bd = BrowserDriver().get("chrome", headless=headless)
|
2020-10-09 17:34:54 +00:00
|
|
|
bd.get('https://test.io')
|
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
2020-10-10 21:40:06 +00:00
|
|
|
bd.quit()
|
2020-10-10 22:27:46 +00:00
|
|
|
|
2020-10-14 22:24:01 +00:00
|
|
|
|
|
|
|
def test_safari_browser(headless):
|
|
|
|
bd = BrowserDriver().get("safari", headless=False)
|
|
|
|
bd.get('https://test.io')
|
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
|
|
|
bd.quit()
|
|
|
|
|
|
|
|
|
2020-10-14 22:37:21 +00:00
|
|
|
@pytest.mark.skip(reason="Edge has inconsistent implementations across platforms")
|
2020-10-10 22:27:46 +00:00
|
|
|
def test_edge_browser(headless):
|
|
|
|
bd = BrowserDriver().get("edge", headless=headless)
|
|
|
|
bd.get('https://test.io')
|
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
|
|
|
bd.quit()
|