Add "disable-background-networking" to excluded switches

This commit is contained in:
hensm
2018-12-28 15:06:50 +00:00
parent fbf271169e
commit 30832a6d6b

View File

@@ -32,9 +32,8 @@ const firefoxOptions = new firefox.Options()
const chromeOptions = new chrome.Options() const chromeOptions = new chrome.Options()
.headless() .headless()
.excludeSwitches("disable-default-apps") .excludeSwitches([ "disable-background-networking"
.addArguments( , "disable-default-apps"]);
`--user-data-dir=${path.resolve(__dirname, "ChromeProfile")}`);
async function create () { async function create () {