Commit 3b395fb5 authored by YuShijiaCode's avatar YuShijiaCode

headless

parent 3f29a77a
...@@ -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