0

My code is below

System.setProperty("webdriver.ie.driver", "C:\\Selenium_Software\\IEDriverServer.exe");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);      
driver = new InternetExplorerDriver(capabilities);
driver.get("http://10.32.147.151/RoSServer/WebClient/DoculiveSimulationExt.asp");
WD.wait(4);
flag=IsObjectPresent.byXpath("//table[@id='AutoNumber1']/tbody/tr[2]/td[6]/input[3]", true);
Click.byXpath("//table[@id='AutoNumber1']/tbody/tr[2]/td[6]/input[3]");

I'm getting this error:

Started InternetExplorerDriver server (64-bit) 2.53.1.0

Listening on port 5069

Only local connections are allowed

4

2 回答 2

0

人们“这只是一条信息性消息。消息告诉你的是...驱动程序可执行文件将只接受来自本地计算机的连接。”

于 2017-09-20T14:01:21.757 回答
0

尝试:

string DRIVER_PATH = @"C:\Selenium_Software\";

driver = new InternetExplorerDriver(DRIVER_PATH);
driver.get("http://10.32.147.151/RoSServer/WebClient/DoculiveSimulationExt.asp");
...
于 2016-07-27T08:51:59.290 回答