Skip to content

Commit

Permalink
[js] look for Selenium Manager binary in location specified by enviro…
Browse files Browse the repository at this point in the history
…nment variable
  • Loading branch information
titusfortner committed Sep 23, 2023
1 parent a102eac commit ac55971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getBinary() {

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

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

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

0 comments on commit ac55971

Please sign in to comment.