* @param {string} seleniumStandalonePath path to standalone server * @param {string=} javaPath the java executable; defaults to getJavaPath * @returns {boolean}
(seleniumStandalonePath, javaPath = getJavaPath())
| 35 | * @returns {boolean} |
| 36 | */ |
| 37 | function isSelenium3x(seleniumStandalonePath, javaPath = getJavaPath()) { |
| 38 | const execRes = cp.execFileSync(javaPath, ['-jar', seleniumStandalonePath, '--version']) |
| 39 | |
| 40 | return execRes.toString().trim().startsWith('Selenium server version: 3') |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @param {string} seleniumStandalonePath path to standalone server |
no test coverage detected