Skip to content

Commit 7cfd137

Browse files
bswhbtitusfortnerdiemol
authored
[js] fix SeleniumServer.start() crashes on MacOS with nodejs selenium-webdriver (#12158)
* [js] use generated selenium manager artifacts for testing * #12076 fix --------- Co-authored-by: titusfortner <[email protected]> Co-authored-by: Diego Molina <[email protected]>
1 parent 505abc3 commit 7cfd137

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • javascript/node/selenium-webdriver/remote

javascript/node/selenium-webdriver/remote/util.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ function getJavaPath() {
3737
function isSelenium3x(seleniumStandalonePath) {
3838
const javaPath = getJavaPath()
3939

40-
const execRes = cp.execSync(
41-
`${javaPath} -jar ${seleniumStandalonePath} --version`
42-
)
40+
const execRes = cp.execFileSync(javaPath, ['-jar', seleniumStandalonePath, '--version'])
4341

4442
return execRes.toString().trim().startsWith('Selenium server version: 3')
4543
}

0 commit comments

Comments
 (0)