2gis/Winium.Cruciatus

Winium driver launching issue in Python

Closed this issue · 0 comments

from selenium import webdriver

driver = webdriver.Remote(
command_executor='http://localhost:9999',
desired_capabilities={
"debugConnectToRunningApp": 'false',
"app": r"C:/windows/system32/calc.exe"

})

O/P > urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=9999): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x03DA4BF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))