Comparing version 8.6.9 to 8.7.0
{ | ||
"name": "devtools", | ||
"version": "8.6.9", | ||
"version": "8.7.0", | ||
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer", | ||
@@ -42,11 +42,11 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"@types/node": "^18.0.0", | ||
"@wdio/config": "8.6.8", | ||
"@wdio/config": "8.7.0", | ||
"@wdio/logger": "8.6.6", | ||
"@wdio/protocols": "8.6.6", | ||
"@wdio/types": "8.6.8", | ||
"@wdio/utils": "8.6.8", | ||
"@wdio/types": "8.7.0", | ||
"@wdio/utils": "8.7.0", | ||
"chrome-launcher": "^0.15.0", | ||
"edge-paths": "^3.0.5", | ||
"import-meta-resolve": "^2.1.0", | ||
"puppeteer-core": "19.8.0", | ||
"puppeteer-core": "19.8.3", | ||
"query-selector-shadow-dom": "^1.0.0", | ||
@@ -61,3 +61,3 @@ "ua-parser-js": "^1.0.1", | ||
}, | ||
"gitHead": "4e55b777974baeea7d74ff43964c114fc8c5f60f" | ||
"gitHead": "2615d963dc561aed0920c519ed5c27720e1a636c" | ||
} |
@@ -36,15 +36,13 @@ DevTools | ||
*/ | ||
await browser.call(async () => { | ||
const puppeteer = await browser.getPuppeteer() | ||
const page = (await puppeteer.pages())[0] | ||
await page.setRequestInterception(true) | ||
page.on('request', interceptedRequest => { | ||
if (interceptedRequest.url().endsWith('webdriverio.png')) { | ||
return interceptedRequest.continue({ | ||
url: 'https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png' | ||
}) | ||
} | ||
const puppeteer = await browser.getPuppeteer() | ||
const page = (await puppeteer.pages())[0] | ||
await page.setRequestInterception(true) | ||
page.on('request', interceptedRequest => { | ||
if (interceptedRequest.url().endsWith('webdriverio.png')) { | ||
return interceptedRequest.continue({ | ||
url: 'https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png' | ||
}) | ||
} | ||
interceptedRequest.continue() | ||
}) | ||
interceptedRequest.continue() | ||
}) | ||
@@ -57,3 +55,3 @@ | ||
/** | ||
* now on the https://webdriver.io page you see the Puppeteer logo | ||
* now on the https://v6.webdriver.io page you see the Puppeteer logo | ||
* instead of the WebdriverIO one | ||
@@ -60,0 +58,0 @@ */ |
232349
155
+ Added@types/node@18.19.71(transitive)
+ Added@wdio/config@8.7.0(transitive)
+ Added@wdio/types@8.7.0(transitive)
+ Added@wdio/utils@8.7.0(transitive)
+ Addedchromium-bidi@0.4.6(transitive)
+ Addedpuppeteer-core@19.8.3(transitive)
+ Addedspdx-license-ids@3.0.21(transitive)
- Removed@types/node@18.19.70(transitive)
- Removed@wdio/config@8.6.8(transitive)
- Removed@wdio/types@8.6.8(transitive)
- Removed@wdio/utils@8.6.8(transitive)
- Removedchromium-bidi@0.4.5(transitive)
- Removedpuppeteer-core@19.8.0(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
Updated@wdio/config@8.7.0
Updated@wdio/types@8.7.0
Updated@wdio/utils@8.7.0
Updatedpuppeteer-core@19.8.3