Skip to content

Commit

Permalink
fix: Revert EdgeDriver 115+ workaround (#35)
Browse files Browse the repository at this point in the history
For a better workaround, specify the path to the Edge binary in your
capabilities request with:

"ms:edgeOptions": {"binary": "/usr/bin/microsoft-edge"}

See also
MicrosoftEdge/EdgeWebDriver#102 (comment)
  • Loading branch information
joeyparrish authored Sep 7, 2023
1 parent d09f291 commit 6df9bc2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,7 @@ class EdgeWebDriverInstaller extends WebDriverInstallerBase {
return `${CDN_URL}/LATEST_RELEASE_${majorVersion}_${platform}`;
};

let idealMajorVersion = parseInt(browserVersion.split('.')[0], 10);

// Work around https://github.com/MicrosoftEdge/EdgeWebDriver/issues/102,
// in which Linux versions of msedgedriver launch Chrome instead of Edge
// starting with version 115. For now, driver version 114 is working for
// Edge 115 on Linux.
if (os.platform() == 'linux') {
if (idealMajorVersion > 114) {
idealMajorVersion = 114;
}
}
const idealMajorVersion = parseInt(browserVersion.split('.')[0], 10);

return await InstallerUtils.fetchVersionUrlWithAutomaticDowngrade(
idealMajorVersion,
Expand Down

0 comments on commit 6df9bc2

Please sign in to comment.