Browser seems to keep loading in Edge IE mode

When I tried to open browser in Edge IE mode, it could open this URL with Edge IE mode but error message said this page did not finish loading

Error message:
TimeoutException: Message: Timed out waiting for page to load.

[ WARN ] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A0963A8C10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/elements
[ WARN ] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A0963A9690>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/elements
[ WARN ] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A0963A8D00>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/elements
[ WARN ] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A0963AB460>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/screenshot
[ WARN ] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A09649C190>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/screenshot
[ WARN ] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A09649C2E0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/screenshot
[ WARN ] Keyword ‘Capture Page Screenshot’ could not be run on failure: HTTPConnectionPool(host=‘localhost’, port=56421): Max retries exceeded with url: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/screenshot (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001A09649C430>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))
Login | FAIL |
MaxRetryError: HTTPConnectionPool(host=‘localhost’, port=56421): Max retries exceeded with url: /session/3001af4b-a517-4dea-940d-5761fa4a9c04/elements (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x000001A0963A9660>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

Below is my code:
*** Settings ***
Library SeleniumLibrary

*** Variables ***
${IEDriver} D:/IEDriverServer.exe

*** Test Cases ***
Open IE In Edge Mode
Open Browser https://tw.yahoo.com ie executable_path=${IEDriver} options=attach_to_edge_chrome=True; edge_executable_path=“C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe”

If I changed the edge to chrome below:
Open Browser https://tw.yahoo.com chrome

It works fine, and I am doubting this weird thing is related to IE.

I don’t have practice with that ie mode, but at least this must be using forward slashes / ou escaped backslashes, \\ .
Always consider this when using Python and Robot Framework.

Note: I would consider adding the IEDriverServer.exe to a directory in the %PATH%.

Hi, thanks for your suggestion
I used double backslashed in my code, but the result did not change.

I think “edge_executable_path” is working, because the robot will have error message if I remove this line of code.
(WebDriverException: Message: ‘IEDriverServer.exe’ executable needs to be in PATH.)