Пример #1
0
 def test_webdriver_is_chromedriver(self):
     # create config.yaml that will be read
     browser = setup_browser("chromedriver")
     assert isinstance(browser, webdriver.Chrome) == True
Пример #2
0
 def test_raises_when_unknown_webdriver(self):
     with pytest.raises(UnknownWebdriverError):
         # create config.yaml that will be read
         setup_browser("wrong_engine")
Пример #3
0
 def test_webdriver_is_geckodriver(self):
     # create config.yaml that will be read
     browser = setup_browser("geckodriver")
     assert isinstance(browser, webdriver.Firefox) == True
Пример #4
0
 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