2020-10-09 17:34:54 +00:00
|
|
|
from browserdriver import BrowserDriver
|
|
|
|
|
|
|
|
|
2020-10-10 21:40:06 +00:00
|
|
|
def test_firefox_browser(headless):
|
|
|
|
bd = BrowserDriver().get("firefox", headless=headless)
|
|
|
|
bd.get('https://test.io')
|
|
|
|
print(bd.current_url, bd.title)
|
|
|
|
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')
|
2020-10-10 21:40:06 +00:00
|
|
|
print(bd.current_url, bd.title)
|
2020-10-09 17:34:54 +00:00
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
2020-10-10 21:40:06 +00:00
|
|
|
bd.quit()
|