---
title: IE mode on Microsoft Edge
description: Learn how to use Internet Explorer mode on Microsoft Edge's browsers.
source_url:
  html: https://testingbot.com/support/web-automate/selenium/ie-mode-on-edge
  md: https://testingbot.com/support/web-automate/selenium/ie-mode-on-edge.md
---

# IE mode on Edge browser

Some (older) websites are built to run on Internet Explorer and might have features that are not supported by current browsers, such as Microsoft Edge. Microsoft Edge is the successor of Internet Explorer.

Microsoft Edge provides an **Internet Explorer Mode** with Microsoft Edge, which allows you to run the Edge browser just like you would be running an IE 11 browser.

IE mode on Microsoft Edge is supported from Selenium version 4 and higher.

## Start using Internet Explorer Mode

To run your Selenium 4 tests with IE Mode and Edge, you can use the `ie.edgechromium` capability with `se:ieOptions`. Please see the example below.

[Java](https://testingbot.com#) [Python](https://testingbot.com#) [NodeJS](https://testingbot.com#) [Ruby](https://testingbot.com#) [PHP](https://testingbot.com#) [C#](https://testingbot.com#)

```java
InternetExplorerOptions options = new InternetExplorerOptions();
options.attachToEdgeChrome();

HashMap<String, Object> tbOptions = new HashMap<>();
tbOptions.put("key", "API_KEY");
tbOptions.put("secret", "API_SECRET");
options.setCapability("tb:options", tbOptions);

WebDriver driver = new RemoteWebDriver(new URL("https://hub.testingbot.com/wd/hub"), options);
```

```python
from selenium import webdriver
from selenium.webdriver.ie.options import Options

options = Options()
options.attach_to_edge_chrome = True
options.set_capability('tb:options', {
  'key': 'API_KEY',
  'secret': 'API_SECRET'
})

driver = webdriver.Remote(
  command_executor='https://hub.testingbot.com/wd/hub',
  options=options
)
```

```javascript
const { Builder } = require('selenium-webdriver');
const ie = require('selenium-webdriver/ie');

async function runTest() {
  let options = new ie.Options();
  options.useEdgeChromium(true);
  options.set('tb:options', {
    'key': 'API_KEY',
    'secret': 'API_SECRET'
  });

  let driver = await new Builder()
    .usingServer('https://hub.testingbot.com/wd/hub')
    .setIeOptions(options)
    .build();
}
runTest();
```

```ruby
options = Selenium::WebDriver::IE::Options.new
options.attach_to_edge_chrome = true
options.add_option('tb:options', {
  'key' => 'API_KEY',
  'secret' => 'API_SECRET'
})

driver = Selenium::WebDriver.for(:remote,
  url: 'https://hub.testingbot.com/wd/hub',
  options: options
)
```

```php
$capabilities = DesiredCapabilities::internetExplorer();
$capabilities->setCapability('platformName', 'WIN11');
$capabilities->setCapability('se:ieOptions', [
  'ie.edgechromium' => true
]);
$capabilities->setCapability('tb:options', [
  'key' => 'API_KEY',
  'secret' => 'API_SECRET'
]);

$driver = RemoteWebDriver::create(
  'https://hub.testingbot.com/wd/hub',
  $capabilities
);
```

```csharp
var options = new InternetExplorerOptions();
options.AttachToEdgeChrome = true;
options.PlatformName = "WIN11";
options.AddAdditionalOption("tb:options", new Dictionary<string, object>
{
    ["key"] = "API_KEY",
    ["secret"] = "API_SECRET"
});

IWebDriver driver = new RemoteWebDriver(
    new Uri("https://hub.testingbot.com/wd/hub"),
    options
);
```

### Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new) [Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
