2016-01-13 44 views
0

org.openqa.selenium.firefox.NotConnectedException:45000毫秒後無法連接到端口7055主機127.0.0.1。 Firefox控制檯輸出:我試圖啓動firefox 39.0瀏覽器使用硒,但我得到這個錯誤

+0

歡迎來到StackOverflow!請閱讀[如何提出一個好問題](http://stackoverflow.com/help/how-to-ask)!請解釋你做了什麼,發生了什麼,幷包括輸出! –

+0

請分享您的代碼片段。請提及您使用的硒版本。 –

+0

我的firefox版本是39.0,我用43.0也試過,硒版本是2.39.0。所以,第一步我已經成功地添加了所有的jar文件,並編寫了簡單的代碼...下面的包seleniumbasic1; import org.openqa.selenium.firefox.FirefoxDriver; public class A { \t public static void main(String [] args){ \t \t FirefoxDriver driver = new FirefoxDriver(); \t \t driver.get(「http:\\ www.gmail.com」); \t} \t} – user3265343

回答

0

你需要將硒版本更新到2.48

相關問題