Skip to content

[🐛 Bug]: Builder.forBrowser(Browser.INTERNET_EXPLORER) not use selenium-manager #11579

@cbl980226

Description

@cbl980226

What happened?

new Builder().forBrowser(Browser.INTERNET_EXPLORER).build()

not trying Selenium Manager

(seleniumManager.driverLocation)[https://github.com/SeleniumHQ/selenium/blob/634d19acf1274276f40533f4a1243adf2d1be8fb/javascript/node/selenium-webdriver/common/seleniumManager.js#L66] can't get ie driver location

How can we reproduce the issue?

mkdir tests
cd tests
npm init -y
npm add -D selenium-webdriver
touch webdriver.test.js
node webdriver.test.js

webdriver.test.js

const { Browser, Builder, By } = require('selenium-webdriver');

(async () => {
  // const driver = await new Builder().forBrowser(Browser.CHROME).build();
  const driver = await new Builder().forBrowser(Browser.INTERNET_EXPLORER).build();
  await driver.get('https://www.selenium.dev/selenium/web/web-form.html');
  const textBox = await driver.findElement(By.name('my-text'));
  const submitButton = await driver.findElement(By.css('button'));

  await textBox.sendKeys('Selenium');
  await submitButton.click();
  await driver.quit();
})();

Relevant log output

$ node webdriver.test.js
The IEDriverServer.exe executable could not be found on the current PATH,
trying Selenium Manager
Unable to obtain driver using Selenium Manager: Error: Unable to locate dr
iver associated with browser name: internet explorer

Operating System

Windows 10

Selenium version

Node selenium-webdriver@4.8.0

What are the browser(s) and version(s) where you see this issue?

None

What are the browser driver(s) and version(s) where you see this issue?

None

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-nodejsJavaScript BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions