Skip to content

Commit ac55971

Browse files
committed
[js] look for Selenium Manager binary in location specified by environment variable
1 parent a102eac commit ac55971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/node/selenium-webdriver/common/seleniumManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function getBinary() {
4646

4747
let seleniumManagerBasePath = path.join(__dirname, '..', '/bin')
4848

49-
const filePath = path.join(seleniumManagerBasePath, directory, file)
49+
const filePath = process.env.SE_MANAGER_PATH || path.join(seleniumManagerBasePath, directory, file)
5050

5151
if (!fs.existsSync(filePath)) {
5252
throw new Error(`Unable to obtain Selenium Manager at ${filePath}`)

0 commit comments

Comments
 (0)