MCPcopy
hub / github.com/SeleniumHQ/selenium / getJavaPath

Function getJavaPath

javascript/selenium-webdriver/remote/util.js:28–30  ·  view source on GitHub ↗

* returns path to java or 'java' string if JAVA_HOME does not exist in env obj * @returns {string}

()

Source from the content-addressed store, hash-verified

26 * @returns {string}
27 */
28function getJavaPath() {
29 return process.env['JAVA_HOME'] ? path.join(process.env['JAVA_HOME'], 'bin/java') : 'java'
30}
31
32/**
33 * @param {string} seleniumStandalonePath path to standalone server

Callers 2

isSelenium3xFunction · 0.85
constructorMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected