Comparing version 8.6.8 to 8.6.9
@@ -140,10 +140,14 @@ import fs from 'node:fs'; | ||
const page = self.getPageHandle(); | ||
await new Promise((resolve, reject) => { | ||
const pageloadTimeout = setTimeout(() => reject(new Error('page load timeout')), self.timeouts.get('pageLoad')); | ||
page.once('load', () => { | ||
clearTimeout(pageloadTimeout); | ||
resolve(); | ||
++retries; | ||
// In some cases, the page load event never arrives | ||
// Wait for a page load event only after trying to execute the command a few times | ||
if (retries >= 3) { | ||
await new Promise((resolve, reject) => { | ||
const pageloadTimeout = setTimeout(() => reject(new Error('page load timeout')), self.timeouts.get('pageLoad')); | ||
page.once('load', () => { | ||
clearTimeout(pageloadTimeout); | ||
resolve(); | ||
}); | ||
}); | ||
}); | ||
++retries; | ||
} | ||
return wrappedCommand.apply(this, args); | ||
@@ -150,0 +154,0 @@ } |
{ | ||
"name": "devtools", | ||
"version": "8.6.8", | ||
"version": "8.6.9", | ||
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer", | ||
@@ -50,3 +50,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"import-meta-resolve": "^2.1.0", | ||
"puppeteer-core": "19.7.5", | ||
"puppeteer-core": "19.8.0", | ||
"query-selector-shadow-dom": "^1.0.0", | ||
@@ -61,3 +61,3 @@ "ua-parser-js": "^1.0.1", | ||
}, | ||
"gitHead": "d93cd057937fc77935a4855dedf74323183652dd" | ||
"gitHead": "4e55b777974baeea7d74ff43964c114fc8c5f60f" | ||
} |
Sorry, the diff of this file is not supported yet
232426
4271
+ Addeddevtools-protocol@0.0.1107588(transitive)
+ Addedpuppeteer-core@19.8.0(transitive)
+ Addedws@8.13.0(transitive)
- Removeddevtools-protocol@0.0.1094867(transitive)
- Removedpuppeteer-core@19.7.5(transitive)
- Removedrimraf@4.4.0(transitive)
- Removedws@8.12.1(transitive)
Updatedpuppeteer-core@19.8.0