question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🚀 Feature]: Default IE Options to use IE Mode in Edge

See original GitHub issue

Feature and motivation

Microsoft is deprecating IE soon, and based on this post https://docs.microsoft.com/en-us/microsoft-edge/web-platform/ie-to-microsoft-edge-redirection, any usage of IE will be launching Edge instead.

Should IE Options to have these options by default?

ieOptions.attachToEdgeChrome();
ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");

Usage example

Instead of

public class IEDriverSample {
    public static void main(String[] args) {        
        InternetExplorerOptions ieOptions = new InternetExplorerOptions();
        ieOptions.attachToEdgeChrome();
        ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
        
        WebDriver driver = new InternetExplorerDriver(ieOptions);

        driver.get("http://www.bing.com");
        WebElement elem = driver.findElement(By.id("sb_form_q"));
        elem.sendKeys("WebDriver", Keys.RETURN);

        driver.close();
    }
}

Have this using IE Mode in Edge by default.

public class IEDriverSample {
    public static void main(String[] args) {        
        WebDriver driver = new InternetExplorerDriver(new InternetExplorerOptions());

        driver.get("http://www.bing.com");
        WebElement elem = driver.findElement(By.id("sb_form_q"));
        elem.sendKeys("WebDriver", Keys.RETURN);

        driver.close();
    }
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
titusfortnercommented, Sep 14, 2022

This has been merged for next release of IE Driver

1reaction
titusfortnercommented, Aug 23, 2022

Ok, we decided that we should not change the bindings code if #10938 works as expected. If IEDriver automatically redirects to Edge on the Machine, then IE Driver will use Edge by default without the user needing to specify anything in capabilities.

If IEDriver and Edge are both installed, the current options will continue to work for the time being. At some point I think IEDriver will stop supporting standalone IE entirely.

I’ll keep this open in case the PR isn’t merged and we need another solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable IE mode on Microsoft Edge
Click the Settings and More (ellipsis) button on the top-right corner. Select the Settings option. Click on Default browser. Under the “Internet ......
Read more >
How to enable IE Mode on Microsoft Edge - Pureinfotech
Enable IE mode on Edge by opening Settings > Default browser. ... The feature is known as “IE Mode” and has been designed...
Read more >
How to use Internet Explorer Mode in Microsoft Edge - PCWorld
To use Internet Explorer Mode in Edge, launch Edge and click the “Ellipses” button in the top-right corner of the window. In the...
Read more >
How to use Internet Explorer mode in the Microsoft Edge ...
Short guide · Click on the Options button in the top-right corner of the Edge browser and select Settings. · Click on Default...
Read more >
setup vpn premium account - Alakadim
The Microsoft Edge setup guide will help you configure Enterprise Site ... to use IE mode, review and configure important security features, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found