MicrosoftDocs / edge-developer

Developer documentation for Edge.
https://learn.microsoft.com/microsoft-edge/developer/
Creative Commons Attribution 4.0 International
377 stars 506 forks source link

Selenium tool uses IE Edge Mode forces the infobar flags for security , causing issue in overall application usage. #3080

Closed niravbha2016 closed 2 months ago

niravbha2016 commented 4 months ago

Utilizing automation tools such as Selenium may inadvertently trigger IE Edge Mode, leading to the enforcement of infobar flags for security. This, in turn, can result in issues affecting the overall application usage. Two specific infobars, namely 'You are using an unsupported command line flag --ie-mode-force. This causes stability and security risk.' and 'Sites in this tab will open in Internet Explorer mode,' are particularly problematic. Unfortunately, these flags cannot be turned off, raising the question: Is there a registry setting available to disable them?

how to turn these off?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

captainbrosset commented 4 months ago

Thanks for reaching out about this. @bwalderman can you help answer the above please?

bwalderman commented 4 months ago

Hi @niravbha2016, can you tell me more about your scenario? You mentioned that IE Mode in "inadvertently" triggered during your test automation. Edge may be redirecting certain pages to IE Mode due to policy. You can try configuring Edge to avoid redirecting to IE Mode for the affected page(s). Docs here: https://learn.microsoft.com/en-us/deployedge/edge-ie-mode-policies

Edge WebDriver doesn't support IE Mode pages and Edge native (Chromium) pages running in the same session, so its important to avoid navigating to sites that open in IE Mode to avoid interfering with your tests.

captainbrosset commented 2 months ago

Closing this since we didn't hear back.