webdriver-installer 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.8](https://github.com/shaka-project/webdriver-installer/compare/v1.1.7...v1.1.8) (2023-08-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Get the correct binary for Firefox on M1 macs ([#31](https://github.com/shaka-project/webdriver-installer/issues/31)) ([f0e5a7c](https://github.com/shaka-project/webdriver-installer/commit/f0e5a7cc8d7ccc8f367bcf9386c383645e16eb3d))
9
+ * Work around failure to launch Edge on Linux ([#32](https://github.com/shaka-project/webdriver-installer/issues/32)) ([ce45a24](https://github.com/shaka-project/webdriver-installer/commit/ce45a243e2d4e63ef32992607a1228d2b079d960))
10
+
3
11
  ## [1.1.7](https://github.com/shaka-project/webdriver-installer/compare/v1.1.6...v1.1.7) (2023-08-17)
4
12
 
5
13
 
package/edge.js CHANGED
@@ -63,8 +63,6 @@ class EdgeWebDriverInstaller extends WebDriverInstallerBase {
63
63
  * @return {!Promise<string>}
64
64
  */
65
65
  async getBestDriverVersion(browserVersion) {
66
- const idealMajorVersion = parseInt(browserVersion.split('.')[0], 10);
67
-
68
66
  let platform;
69
67
  if (os.platform() == 'linux') {
70
68
  platform = 'LINUX';
@@ -80,6 +78,18 @@ class EdgeWebDriverInstaller extends WebDriverInstallerBase {
80
78
  return `${CDN_URL}/LATEST_RELEASE_${majorVersion}_${platform}`;
81
79
  };
82
80
 
81
+ let idealMajorVersion = parseInt(browserVersion.split('.')[0], 10);
82
+
83
+ // Work around https://github.com/MicrosoftEdge/EdgeWebDriver/issues/102,
84
+ // in which Linux versions of msedgedriver launch Chrome instead of Edge
85
+ // starting with version 115. For now, driver version 114 is working for
86
+ // Edge 115 on Linux.
87
+ if (os.platform() == 'linux') {
88
+ if (idealMajorVersion > 114) {
89
+ idealMajorVersion = 114;
90
+ }
91
+ }
92
+
83
93
  return await InstallerUtils.fetchVersionUrlWithAutomaticDowngrade(
84
94
  idealMajorVersion,
85
95
  /* minMajorVersion */ idealMajorVersion - 2,
package/firefox.js CHANGED
@@ -86,7 +86,11 @@ class FirefoxWebDriverInstaller extends WebDriverInstallerBase {
86
86
  extension = 'tar.gz';
87
87
  isZip = false;
88
88
  } else if (os.platform() == 'darwin') {
89
- platform = 'macos';
89
+ if (process.arch == 'arm64') {
90
+ platform = 'macos-aarch64';
91
+ } else {
92
+ platform = 'macos';
93
+ }
90
94
  extension = 'tar.gz';
91
95
  isZip = false;
92
96
  } else if (os.platform() == 'win32') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-installer",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Install the right WebDriver version for your local browsers, automatically.",
5
5
  "main": "main.js",
6
6
  "bin": {