def test_args(self): launcher = Launcher({'args': ['--some-args']}) self.check_default_args(launcher) self.assertIn('--some-args', launcher.chrome_args)
def test_disable_headless(self): launcher = Launcher({'headless': False}) for opt in self.headless_options: self.assertNotIn(opt, launcher.chrome_args)
def test_executable(self): launcher = Launcher({'executablePath': '/path/to/chrome'}) self.assertEqual(launcher.exec, '/path/to/chrome')
def test_no_option(self): launcher = Launcher() self.check_default_args(launcher) self.assertEqual(launcher.exec, str(chromium_excutable()))