Commit eb2cfcbd authored by Joshua Yu's avatar Joshua Yu

Merge branch 'main' into 'master'

headless See merge request !8
parents d68e890e 3b395fb5
...@@ -33,7 +33,7 @@ exports.getDriver = function (webdriver, browser) { ...@@ -33,7 +33,7 @@ exports.getDriver = function (webdriver, browser) {
// Not use headless // Not use headless
// .setChromeOptions(new chrome.Options().addArguments('--no-sandbox',"excludeSwitches=['enable-automation']")) // .setChromeOptions(new chrome.Options().addArguments('--no-sandbox',"excludeSwitches=['enable-automation']"))
// Use headless // Use headless
.setChromeOptions(new chrome.Options().addArguments("--headless",'--ignore-certificate-errors','window-size=1920,1080','--no-sandbox')) .setChromeOptions(new chrome.Options().addArguments("--headless",'--ignore-certificate-errors','window-size=1920,1080','--no-sandbox',"excludeSwitches=['enable-automation']"))
.build(); .build();
break; break;
case 'firefox': case 'firefox':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment