def test_webdriver_is_chromedriver(self): # create config.yaml that will be read browser = setup_browser("chromedriver") assert isinstance(browser, webdriver.Chrome) == True
def test_raises_when_unknown_webdriver(self): with pytest.raises(UnknownWebdriverError): # create config.yaml that will be read setup_browser("wrong_engine")
def test_webdriver_is_geckodriver(self): # create config.yaml that will be read browser = setup_browser("geckodriver") assert isinstance(browser, webdriver.Firefox) == True
def test_geckodriver_when_webdriver_is_not_defined(self): # create config.yaml that will be read browser = setup_browser() assert isinstance(browser, webdriver.Firefox) == True