Skip to content

chromedriver.cmd fails to launch with newer nodejs versions[πŸ› Bug]: Β #14353

@benm071

Description

@benm071

What happened?

Trying to use selenium-webdriver against chrome instances fails to launch chromedriver.cmd and thus chrome for testing when run on Windows 11 against newer nodejs instances (such as 18.20.2) due to a security patch made in nodejs that prevents spawn/spawnSync from launching .cmd or .bat without { shell: true }

See nodejs/node#52681 for example

How can we reproduce the issue?

Try to run any nodejs based test script using chrome/chromedriver on a Windows system with one of the security-patched nodes.  chromedriver.cmd will never launch because it fails internally to selenium-webdriver with a node EINVAL error (which is eaten and never displayed)

Relevant log output

No output

Operating System

Windows 11

Selenium version

4.23.0

What are the browser(s) and version(s) where you see this issue?

Chrome 127

What are the browser driver(s) and version(s) where you see this issue?

chromdriver 127.x

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-nodejsJavaScript Bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions