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

Martin Wilson
  • 3,386
  • 1
  • 24
  • 29
user1635105
  • 41
  • 1
  • 4
  • you can refer to similar query in following link [LINK](http://stackoverflow.com/questions/25080500/when-run-webdriver-with-chrome-browser-getting-message-only-local-connection) – Nagendra Somayaji Jul 27 '16 at 07:15
  • Actually i went through link you pasted.Its nothing to do with chromdriver. – user1635105 Jul 27 '16 at 08:30
  • Also I have taken IEdriver which is compatible from selenium site.But still I am getting error.I have tried all solutions given on that link – user1635105 Jul 27 '16 at 08:31

2 Answers2

0

try:

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

driver = new InternetExplorerDriver(DRIVER_PATH);
driver.get("http://10.32.147.151/RoSServer/WebClient/DoculiveSimulationExt.asp");
...
Leon Barkan
  • 2,676
  • 2
  • 19
  • 43
  • InternetExplorerDriver accept capability and not string – user1635105 Jul 27 '16 at 09:57
  • InternetExplorerDriver(String) - Initializes a new instance of the InternetExplorerDriver class using the specified path to the directory containing IEDriverServer.exe. – Leon Barkan Jul 27 '16 at 10:12
  • try to look selenium api for better understanding selenium functionality : http://seleniumhq.github.io/selenium/docs/api/dotnet/index.html – Leon Barkan Jul 27 '16 at 10:14
  • Yes tried this solution but somehow it is not showing InternetExplorerDriver(String) constructor in code recommendation,and by using it throwing up error.It is showing undefined contructor. – user1635105 Jul 27 '16 at 10:51
  • i see, you using java .. try to initialize InternetExplorerDriverService service object and in that object defined the driver path after that pass it to the driver initialization – Leon Barkan Jul 27 '16 at 10:55
  • While this code may answer the question, providing additional context regarding *how* and/or *why* it solves the problem would improve the answer's long-term value. – Michael Parker Jul 27 '16 at 19:56
0

People say "This is an informational message only. What the message is telling you is that the ...driver executable will only accept connections from the local machine."

uBaH
  • 169
  • 1
  • 12