myukitty

#55524: docs: explain ChromeDriver arguments during testing

Merged
Created: Oct 30, 2026, 1:23:21 PM
Merged: Oct 31, 2026, 12:10:46 AM
5 comments
Target: main

Description of Change

Fixes #31769.

Document that ChromeDriver adds arguments to Electron's process.argv, including
switches and a positional startup URL. Explain why these can break strict argument
parsing, and recommend handling only known driver-added arguments in test startup
while retaining validation of application arguments.

Validation on Linux x64 with Electron 45.1.0, electron-chromedriver 45.1.0
(ChromeDriver 156.0.8078.49), selenium-webdriver 4.52.0 and yargs 18.2.0:

  • Reproduced strict-parser startup failure under ChromeDriver.
  • An explicit test-only schema/filter restored a working WebDriver session;
    application-option typos and an unlisted switch still failed validation.
  • npm run lint:docs passed on the base and this change, with the same existing
    crash-reporter.md API-history warning.

No native Electron build, full runtime suite, Windows/macOS run or WebdriverIO
service test was performed for this documentation-only change.

AI assistance: OpenAI Codex assisted with investigation, drafting and validation;
Gemini via Antigravity and Claude Opus via ATD provided independent review.

Checklist

Release Notes

Notes: none

Backports

45-x-y
Merged
PR Number
#55532
Merged At
Oct 31, 2026, 2:35:47 PM
Released In
v45.2.2
Release Date
Nov 3, 2026, 11:01:44 AM
46-x-y
Merged
PR Number
#55531
Merged At
Oct 31, 2026, 2:35:50 PM
Released In
v46.0.0-alpha.5
Release Date
Nov 2, 2026, 3:00:30 PM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron