-1
我已經加入硒jar文件在Eclipse中的火星。當我推出的Firefox瀏覽器,我發現了以下錯誤啓動Firefox瀏覽器中的硒
Exception in thread "main" java.lang.RuntimeException: Unable to find a free port
at org.openqa.selenium.net.PortProber.findFreePort(PortProber.java:67)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:326)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:104)
at Mypackage.Myfirstprogram.main(Myfirstprogram.java:10)
您可以重新啓動一次並嘗試嗎? –
@Anbarasan你可以考慮展示你的作品嗎?謝謝 – DebanjanB