Skip to content

Commit

Permalink
fix: Improve error resiliency of drivers installation (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
tykus160 authored Feb 20, 2025
1 parent 43e2c6a commit 6b5bf14
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ const LocalWebDriverBase = function(baseBrowserDecorator, args, logger) {
}

// Wait for drivers to be installed for all local browsers.
await driversInstalledPromise;
try {
await driversInstalledPromise;
} catch (e) {
log.error('Failed to install drivers:', e);
}

previousUrl = url;
originalStart.call(this, url);
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"lodash": "^4.17.21",
"wd": "^1.14.0",
"webdriver-installer": "^1.1.9",
"webdriver-installer": "^1.1.10",
"which": "^4.0.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 6b5bf14

Please sign in to comment.