Repository navigation
feat(@wdio/utils): download Chromedriver from Electron releases - #10
Closed
goosewobbler wants to merge 6 commits into
Closed
goosewobbler wants to merge 6 commits into
goosewobbler wants to merge 6 commits into
Conversation
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
September 30, 2026 21:07
7a6cece to
8c49e9d
Compare
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
September 30, 2026 23:48
8c49e9d to
a5cd5a9
Compare
8 of 20 tasks
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
5 times, most recently
from
October 1, 2026 10:29
d013beb to
ce17db5
Compare
5 of 14 tasks
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
October 1, 2026 12:30
ce17db5 to
decc08d
Compare
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
8 times, most recently
from
October 2, 2026 11:55
ccac11b to
c84318c
Compare
…h wdio:electronVersion
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
October 2, 2026 11:58
c84318c to
209aebb
Compare
… when Chrome for Testing fails
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
October 2, 2026 12:21
209aebb to
cbcff35
Compare
goosewobbler
force-pushed
the
feat/linux-arm64-chromedriver
branch
from
October 2, 2026 13:08
cbcff35 to
ad833a2
Compare
Owner
Author
|
Superseded by webdriverio#15871. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Rebuilt on v10 from the closed upstream draft
webdriverio/webdriverio#15015. It addresseswebdriverio/webdriverio#14986.@wdio/utilscan now download Chromedriver from Electron releases, for Electron apps and for Linux ARM64. Chrome for Testing (CfT) only ships alinux-arm64Chromedriver from Chrome153.0.8001.0. For older builds,@puppeteer/browsersdownloads the x64 (linux64) archive, which can't run on arm64. Those builds now get the Chromedriver of an Electron release with the same Chromium major instead. This also enables a general CfT fallback whereby a matching Electron release is used if a CfT download fails.Changes
ElectronChromedriverProviderdownloads an Electron release's Chromedriver, including nightlies fromelectron/nightlies.getElectronVersionForChromiummaps a Chrome version to the last Electron release with the same Chromium major, usingelectron-to-chromium; Chromedriver only checks the major.wdio:electronVersion: downloads that release's Chromedriver for an Electron app set asgoog:chromeOptions.binary, without running the app to read its Chrome version. It only ever holds an Electron version: from fix(electron): correct how the Electron version is passed to WebdriverIO webdriverio/desktop-mobile#693 on, the Electron service sets it only for known releases.153.0.8001.0goes straight to the matching Electron release.wdio:electronVersionin Capabilities, and where Chromedriver comes from in Driver Binaries.test:e2e:chromedriverruns the testrunner onubuntu-24.04-arm,macos-15andwindows-latestwhen the Chromedriver setup files change. It uses a Chromium 130 binary, Playwright 1.48.2's pinned build. One spec setswdio:electronVersion33.2.1 on every platform; on Linux ARM64, another gets Electron 33.4.11's driver through the fallback.setupPuppeteerBrowserbecomegetPuppeteerBrowserandlocateInstalledBrowser.Source selection
153.0.8001.0or laterlinux-arm64)wdio:electronVersionsetbrowserVersionif it can't be downloadedwdio:electronVersionandbrowserVersionset, withCHROMEDRIVER_CDNURLCHROMEDRIVER_CDNURLsetExample
How you tested
npx vitest --config vitest.config.ts --run packages/wdio-utilsandtsc --noEmitfor@wdio/utils, at each commitrun-p test:typings:*pnpm run test:e2e:chromedriverpasses in CI onubuntu-24.04-arm(both specs),macos-15andwindows-latest.setupChromedriverrun from source in anode:24container, checking each installed driver withfileandchromedriver --version. The results are below; "CfT blocked" pointsstorage.googleapis.comat localhost.docs:check --skip-build-checkspasses.linux/arm64unless stated)ARM aarch64stablelinux-arm64ChromeDriver 154.0.8037.92wdio:electronVersion34.0.0-beta.9wdio:electronVersion36.0.0-nightly.20250303electron/nightlieswdio:electronVersion33.2.1+wvcus, Chrome 130.0.6723.137stableARM aarch64linux/amd64x86-64Types of changes
Checklist
🤖 Generated with Claude Code