Skip to content

Commit

Permalink
fix: Fix exception thrown when Edge executable is not found (shaka-pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish authored Sep 8, 2023
1 parent db796b9 commit fd3ff72
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 16 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const LocalWebDriverChromeHeadless = generateSubclass(
// that explicitly. This works around the following edgedriver bug:
// https://github.com/MicrosoftEdge/EdgeWebDriver/issues/102#issuecomment-1710724173
const edgeOptions = {};
const edgeBinary = which.sync('microsoft-edge');
const edgeBinary = which.sync('microsoft-edge', {nothrow: true});
if (edgeBinary) {
edgeOptions['ms:edgeOptions'] = {
binary: edgeBinary,
Expand Down
50 changes: 37 additions & 13 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"author": "Joey Parrish <[email protected]>",
"dependencies": {
"lodash": "^4.17.21",
"node-which": "^1.0.0",
"wd": "^1.14.0",
"webdriver-installer": "^1.1.9"
"webdriver-installer": "^1.1.9",
"which": "^4.0.0"
},
"peerDependencies": {
"karma": "^6.2.0"
Expand Down

0 comments on commit fd3ff72

Please sign in to comment.