Skip to content

Commit

Permalink
Fix for Chromedriver 115 bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jul 21, 2023
1 parent e086c37 commit cc03cbd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 28 deletions.
9 changes: 9 additions & 0 deletions lib/chrome/webdriver/setupChromiumOptions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { readFileSync } from 'node:fs';
import { platform } from 'node:os';
import intel from 'intel';
import { chromeDesktopOptions as defaultChromeOptions } from '../settings/chromeDesktopOptions.js';
import { chromeAndroidOptions as defaultAndroidChromeOptions } from '../settings/chromeAndroidOptions.js';
Expand Down Expand Up @@ -188,6 +189,14 @@ export function setupChromiumOptions(

if (browserOptions.binaryPath) {
seleniumOptions.setChromeBinaryPath(browserOptions.binaryPath);
} else {
// Fix for https://github.com/sitespeedio/browsertime/issues/1968
// Same settings for Chrome/Edge
if (options.browser === 'chrome' && platform() === 'darwin') {
seleniumOptions.setChromeBinaryPath(
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
);
}
}

if (browserOptions.mobileEmulation) {
Expand Down
36 changes: 9 additions & 27 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 @@ -7,7 +7,7 @@
"dependencies": {
"@cypress/xvfb": "1.2.4",
"@devicefarmer/adbkit": "2.11.3",
"@sitespeed.io/chromedriver": "114.0.5735-90",
"@sitespeed.io/chromedriver": "115.0.5790-98b",
"@sitespeed.io/edgedriver": "113.0.1774-9b",
"@sitespeed.io/geckodriver": "0.33.0",
"@sitespeed.io/throttle": "5.0.0",
Expand Down

0 comments on commit cc03cbd

Please sign in to comment.