IEDriver in Edge IE mode opens the page but cannot locate elements or execute JavaScript

This automation worked before October 1, but now fails with Robot Framework and SeleniumLibrary

Environment

  • Windows 10.0.26200, Python 3.10.12
  • Robot Framework 7.0.1, SeleniumLibrary 6.5.0, Selenium 4.31.0
  • 32-bit IEDriverServer 4.14.0, Edge 158

Failure

The internal application opens in Edge IE mode. Get Location and Get Title return the expected URL and title, and the Custody menu is visible. However:

Wait Until Element Is Visible //span[normalize-space(.)=“Custody”] 30s

times out. The test’s diagnostic fallback then fails with:

Element with locator ‘//body’ not found.

CSS lookup also returns zero elements. Separately, executing return document.title; fails. IEDriver TRACE logging reports:

-2147024891 [Access is denied.]:
Unable to execute code, call to IHTMLWindow2::execScript failed

What we tried

Tested both the previously configured Edge Core 157 path and the installed Edge 158 executable.

  • Tried attach_to_edge_chrome=True and ignore_zoom_level=True.
  • Tried XPath, CSS, and JavaScript. The same issue occurred through RoboMCP and a direct RobotCode run.
  • Set Protected Mode values for all four zones to disabled. IEDriver reports its Protected Mode check as valid, but the issue persists.
  • Verified the IE11 BFCACHE registry value is 0.
  • Tried opening Google in IE mode. One attempt opened but could not find body or execute JavaScript; another timed out after 120 seconds.
  • IEDriver also logged: Cannot check Protected Mode because driver and browser are not the same bit-ness.

really long time since used selenium but:

32-bit IEDriverServer 4.14.0, Edge 158

and

Cannot check Protected Mode because driver and browser are not the same bit-ness.

this could be the reason. Are you sure your Edge binary is 32bit instead of 64bit build?

EDIT

Maybe check the webdriver too ? If you rely on automatic driver download it could default to loading 64bit version..