Comparing version 8.10.0 to 8.10.1
@@ -74,2 +74,7 @@ import { launch as launchChromeBrowser } from 'chrome-launcher'; | ||
} | ||
// Honor both ignoreHTTPSErrors and acceptInsecureCerts | ||
// Only for WebKit/Blink engines, Firefox uses a different option | ||
if (capabilities.acceptInsecureCerts || devtoolsOptions.ignoreHTTPSErrors) { | ||
chromeFlags.push('--ignore-certificate-errors'); | ||
} | ||
log.info(`Launch Google Chrome (${chromeOptions.binary}) with flags: ${chromeFlags.join(' ')}`); | ||
@@ -108,3 +113,3 @@ const launchOptions = { | ||
const vendorCapKey = VENDOR_PREFIX[browserType]; | ||
const devtoolsOptions = capabilities['wdio:devtoolsOptions']; | ||
const devtoolsOptions = capabilities['wdio:devtoolsOptions'] || {}; | ||
/** | ||
@@ -116,8 +121,9 @@ * `ignoreDefaultArgs` and `headless` are currently expected to be part of the capabilities | ||
*/ | ||
let ignoreDefaultArgs = capabilities.ignoreDefaultArgs; | ||
let headless = capabilities.headless; | ||
if (devtoolsOptions) { | ||
ignoreDefaultArgs = devtoolsOptions.ignoreDefaultArgs; | ||
headless = devtoolsOptions.headless; | ||
} | ||
const ignoreDefaultArgs = capabilities.ignoreDefaultArgs || devtoolsOptions.ignoreDefaultArgs; | ||
const headless = capabilities.headless || devtoolsOptions.headless; | ||
// Set devtoolsOptions to honor both ignoreHTTPSErrors and acceptInsecureCerts | ||
// Only necessary for Firefox, not for WebKit/Blink engines | ||
devtoolsOptions.ignoreHTTPSErrors = browserType === 'firefox' | ||
? Boolean(devtoolsOptions.ignoreHTTPSErrors || capabilities.acceptInsecureCerts) | ||
: devtoolsOptions.ignoreHTTPSErrors ?? false; | ||
if (!capabilities[vendorCapKey]) { | ||
@@ -138,3 +144,10 @@ capabilities[vendorCapKey] = {}; | ||
}, | ||
prefs: capabilities[vendorCapKey]?.prefs | ||
prefs: capabilities[vendorCapKey]?.prefs, | ||
args: [ | ||
// Set args to honor both ignoreHTTPSErrors and acceptInsecureCerts | ||
// Only for WebKit/Blink engines, Firefox uses a different option | ||
...['--ignore-certificate-errors'] | ||
.filter(() => browserType === 'edge' | ||
&& (devtoolsOptions.ignoreHTTPSErrors || capabilities.acceptInsecureCerts)) | ||
] | ||
}, capabilities[vendorCapKey] || {}, devtoolsOptions || {}); | ||
@@ -141,0 +154,0 @@ if (!executablePath) { |
{ | ||
"name": "devtools", | ||
"version": "8.10.0", | ||
"version": "8.10.1", | ||
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer", | ||
@@ -41,12 +41,12 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"dependencies": { | ||
"@types/node": "^18.0.0", | ||
"@wdio/config": "8.10.0", | ||
"@types/node": "^20.1.0", | ||
"@wdio/config": "8.10.1", | ||
"@wdio/logger": "8.6.6", | ||
"@wdio/protocols": "8.8.1", | ||
"@wdio/types": "8.10.0", | ||
"@wdio/utils": "8.10.0", | ||
"@wdio/types": "8.10.1", | ||
"@wdio/utils": "8.10.1", | ||
"chrome-launcher": "^0.15.0", | ||
"edge-paths": "^3.0.5", | ||
"import-meta-resolve": "^3.0.0", | ||
"puppeteer-core": "19.11.1", | ||
"puppeteer-core": "20.1.1", | ||
"query-selector-shadow-dom": "^1.0.0", | ||
@@ -61,3 +61,3 @@ "ua-parser-js": "^1.0.1", | ||
}, | ||
"gitHead": "f0c607340b4f31a4ae48509115335283f488e38f" | ||
"gitHead": "0fc768bb7b2fe233877893260aec658facf6357f" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
233404
4286
+ Added@puppeteer/browsers@1.0.1(transitive)
+ Added@tootallnate/once@2.0.0(transitive)
+ Added@types/node@20.17.11(transitive)
+ Added@wdio/config@8.10.1(transitive)
+ Added@wdio/types@8.10.1(transitive)
+ Added@wdio/utils@8.10.1(transitive)
+ Addeddevtools-protocol@0.0.1120988(transitive)
+ Addedhttp-proxy-agent@5.0.0(transitive)
+ Addedpuppeteer-core@20.1.1(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@puppeteer/browsers@0.5.0(transitive)
- Removed@types/node@18.19.69(transitive)
- Removed@wdio/config@8.10.0(transitive)
- Removed@wdio/types@8.10.0(transitive)
- Removed@wdio/utils@8.10.0(transitive)
- Removeddevtools-protocol@0.0.1107588(transitive)
- Removedpuppeteer-core@19.11.1(transitive)
- Removedundici-types@5.26.5(transitive)
Updated@types/node@^20.1.0
Updated@wdio/config@8.10.1
Updated@wdio/types@8.10.1
Updated@wdio/utils@8.10.1
Updatedpuppeteer-core@20.1.1