Esempio n. 1
0
 def test_default_args_mac(self):
     """
     Mac google chrome does not support --no-sandbox option
     """
     browser_config = BrowserConfig(
         running_os=SupportedOS.mac, browser_window=BrowserWindow(),
     )
     assert "--no-sandbox" not in browser_config.default_args()
Esempio n. 2
0
 def test_default_args_linux(self):
     """
     Linux google chrome requires --no-sandbox option if runing as root
     - by default linux boxes (docker) use root profile when connecting to them
     """
     browser_config = BrowserConfig(
         running_os=SupportedOS.linux, browser_window=BrowserWindow(),
     )
     assert "--no-sandbox" in browser_config.default_args()
Esempio n. 3
0
 def test_window_flag_option(self):
     window = BrowserWindow()
     config = BrowserConfig(running_os=SupportedOS.linux, browser_window=window)
     assert window.as_arg_option() in config.default_args()