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
edge_executable_path=“C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe”
Note: I would consider adding the IEDriverServer.exe to a directory in the %PATH%.
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.)