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