Beispiel #1
0
 def test_chrome_env_custom(self):
     env = helpers.get_chrome_env(options=dict(
         port=1234,
         executable_path='/toto/chromedriver',
         desired_capabilities='firefox',    # Don't do this ;-)        
     ))
     self.assertEquals(1234, env.get_port())
     self.assertEquals('/toto/chromedriver', env.get_executable_path())
     self.assertEquals(DesiredCapabilities.FIREFOX, env.get_desired_capabilities())
Beispiel #2
0
 def test_chrome_env_default(self):
     env = helpers.get_chrome_env()
     self.assertEquals(None, env.get_port())
     self.assertEquals(None, env.get_executable_path())
     self.assertEquals(None, env.get_desired_capabilities())