Esempio n. 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
Esempio n. 2
0
 def test_raises_when_unknown_webdriver(self):
     with pytest.raises(UnknownWebdriverError):
         # create config.yaml that will be read
         setup_browser("wrong_engine")
Esempio n. 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
Esempio n. 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