From bcb5a25ddea4316aa6e86f80f423efaec61947d5 Mon Sep 17 00:00:00 2001 From: Sriharsha Date: Wed, 25 Jan 2023 20:50:52 +0530 Subject: [PATCH] [JS] fix: iedriver download with selenium-manager #11579 --- javascript/node/selenium-webdriver/common/seleniumManager.js | 2 +- javascript/node/selenium-webdriver/ie.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/node/selenium-webdriver/common/seleniumManager.js b/javascript/node/selenium-webdriver/common/seleniumManager.js index daeb622e82eaa..1f0ecee2956c7 100644 --- a/javascript/node/selenium-webdriver/common/seleniumManager.js +++ b/javascript/node/selenium-webdriver/common/seleniumManager.js @@ -30,7 +30,7 @@ const execSync = require('child_process').execSync * currently supported browsers for selenium-manager * @type {string[]} */ -const Browser = ['chrome', 'firefox', 'edge'] +const Browser = ['chrome', 'firefox', 'edge', 'iexplorer'] /** * Determines the path of the correct Selenium Manager binary diff --git a/javascript/node/selenium-webdriver/ie.js b/javascript/node/selenium-webdriver/ie.js index 494dd53bb8df1..afcdf96fe4be9 100644 --- a/javascript/node/selenium-webdriver/ie.js +++ b/javascript/node/selenium-webdriver/ie.js @@ -406,7 +406,7 @@ function createServiceFromCapabilities(capabilities) { ) try { - exe = driverLocation(Browser.INTERNET_EXPLORER) + exe = driverLocation('iexplorer') } catch (err) { console.log(`Unable to obtain driver using Selenium Manager: ${err}`) }