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 <titus.fortner@gmail.com> Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 505abc3 commit 7cfd137

File tree

1 file changed

+1
-3
lines changed
  • javascript/node/selenium-webdriver/remote

1 file changed

+1
-3
lines changed

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)