I've got a colleague who is having problems getting Selenium to successfully launch a browser. We have tried both IE and Firefox. We suspect a port/firewall type of issue based on this stack trace we see when trying to launch IE:
java.lang.RuntimeException: Unable to find a free port
at org.openqa.selenium.net.PortProber.findFreePort(PortProber.java:59)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:291)
at org.openqa.selenium.ie.InternetExplorerDriverService.createDefaultService(InternetExplorerDriverService.java:62)
at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:100)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:54)
We tried disabling his firewall and that had no effect.
Has anyone already resolved an issue like this?
Thanks
Check your host file entries : - "C:\Windows\System32\drivers\etc"
If your entry consists of "10.66.193:49 :localhost" then change it to "127.0.0.1 localhost"
Thanks
Sandesh