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 24, 2023
1 parent 1ad04e6 commit 68c5eb2
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 68c5eb2

Please sign in to comment.