java.net.ConnectException: Failed to connect to localhost error with Selenium 3.11.0 with IEDriverServer and IE 11 on Windows 10

后端 未结 4 810
难免孤独
难免孤独 2021-01-13 22:58

I am very new to selenium and trying to set up selenium in my laptop to begin. I am unable to invoke IE from my simple code. The details are given below. Can you please help

4条回答
  •  庸人自扰
    2021-01-13 23:39

    I had this occur even with the same Driver and client versions.

    Started InternetExplorerDriver server (32-bit)
    3.141.59.0
    ...
    java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:XXXX
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'HOST_NAME', ip: 'XX.XXX.XX.XX', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_251'
    Driver info: driver.version: RemoteWebDriver
    

    I ended up finding a perfect match here

    http://selenium-release.storage.googleapis.com/index.html

    but the Security Settings in IE were different and not correct on a new computer. Making each zone have the same Enable Protected Mode box state (every one selected or deselected) in

    Internet Options -> Security
    

    Fixed it 100%. Was getting the driver to launch and navigate to a page, but the prior two steps fixed the errors.

提交回复
热议问题