我無法使用最新的Selenium版本(2.53,Selenium 3 beta)在Firefox 48上運行我的測試。Firefox 48和硒超時問題
請解釋所需的配置以及用於在Firefox 48上成功運行測試的代碼。我指出了geckodriver並試圖在我的代碼中初始化相同的代碼。
代碼:
System.setProperty("webdriver.gecko.driver","E:\\Work\\Selenium\\geckodriver-v0.9.0-win64\\geckodriver.exe");
WebDriver driver = null;
driver = new MarionetteDriver();
獲取以下:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
它的工作。我錯過了設置所需的功能。非常感謝Ranjith's和@QA Square –
請接受答案並豎起大拇指! –
http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work –