Loading load_check.py +8 −4 Original line number Diff line number Diff line Loading @@ -595,20 +595,24 @@ class MultipleTest(unittest.TestCase): options.add_argument("--ignore-certificate-errors") options.add_argument('--start-maximized') # Secret Mode # options.add_argument("--incognito") options.add_argument("--incognito") # Guest Mode options.add_argument('--guest') # options.add_argument('--guest') options.add_argument("--window-size=1920,1080") headless = os.getenv("HEADLESS", "").lower() if headless in ("0", "false", "n", "no"): pass else: options.add_argument("--headless=new") # options.add_argument("--disable-gpu") options.add_argument("--disable-gpu") options.add_argument("--disable-software-rasterizer") options.add_argument("--no-first-run") options.add_argument("--no-default-browser-check") options.add_argument("--disable-extensions") options.add_argument("--no-sandbox") options.binary_location = self.binary_location # Linux Only if sys.platform.startswith('linux'): # Check if the operating system is Linux options.add_argument("--no-sandbox") options.add_argument("--disable-dev-shm-usage") service = Service(executable_path=self.webdriver_path) driver = webdriver.Chrome(service=service, options=options) Loading Loading
load_check.py +8 −4 Original line number Diff line number Diff line Loading @@ -595,20 +595,24 @@ class MultipleTest(unittest.TestCase): options.add_argument("--ignore-certificate-errors") options.add_argument('--start-maximized') # Secret Mode # options.add_argument("--incognito") options.add_argument("--incognito") # Guest Mode options.add_argument('--guest') # options.add_argument('--guest') options.add_argument("--window-size=1920,1080") headless = os.getenv("HEADLESS", "").lower() if headless in ("0", "false", "n", "no"): pass else: options.add_argument("--headless=new") # options.add_argument("--disable-gpu") options.add_argument("--disable-gpu") options.add_argument("--disable-software-rasterizer") options.add_argument("--no-first-run") options.add_argument("--no-default-browser-check") options.add_argument("--disable-extensions") options.add_argument("--no-sandbox") options.binary_location = self.binary_location # Linux Only if sys.platform.startswith('linux'): # Check if the operating system is Linux options.add_argument("--no-sandbox") options.add_argument("--disable-dev-shm-usage") service = Service(executable_path=self.webdriver_path) driver = webdriver.Chrome(service=service, options=options) Loading