-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-nodejsJavaScript BindingsJavaScript Bindings
Description
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 outputOperating 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
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-nodejsJavaScript BindingsJavaScript Bindings