2016-11-11 72 views
0

我無法啓動火狐瀏覽器(49版)和硒罐是2.5.3。無法啓動Firefox瀏覽器在Windows XP(32位)使用硒的webdriver

獲得以下錯誤: -

*2016-11-10 18:45:36 ERROR BrowserConfig:293 - Error in EbselenCore.setBrowser:Specified firefox binary location does not exist or is not a real file: C:\Program Files (x86)\Mozilla Firefox\firefox.exe 
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' 
System info: host: 'karthik', ip: '0.0.0.0xx', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_111' 
Driver info: driver.version: unknown* 

即使我試圖與system.setproperty到

System.setProperty("webdriver.firefox.bin", "xxxxx\\xxx\\firefox.exe"); 
System.setProperty("webdriver.chrome.driver", "xxxxx\\xxx\\chromedriver.exe"); 
System.setProperty("webdriver.chrome.bin", "xxxxx\\xxx\\chrome.exe"); 

即使我試圖與鍍鉻驅動程序: -

Nov 11, 2016 2:29:10 PM org.openqa.selenium.os.UnixProcess checkForErrorSEVERE: org.apache.commons.exec.ExecuteException:Process exited with an error: -1073741511 (Exit value: -1073741511) 2016-11-11 14:29:11 ERROR BrowserConfig:293 - Error in EbselenCore.setBrowser:Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'karthik', ip: 'x.x.x.x.', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_111' Driver info: driver.version: SeleniumChromeDriver 

謝謝提前作出迴應。

+0

當Firefox安裝不正確時會出現此錯誤。你可以嘗試重新安裝一次嗎? – SaiPawan

+0

如果您打開命令提示符窗口並輸入cd C:\ Program Files(x86)\ Mozilla Firefox \,您會看到一個名爲firefox.exe的二進制文件嗎?如果不是,那是你的問題;沒有Firefox瀏覽器。在本地運行時,Selenium希望安裝它的firefoxdriver和firefox瀏覽器。 – MikeJRamsey56

+0

@KarthiikRao您可以對穩定的Mozilla Firefox GA版本進行全新安裝,並與我們分享您的工作嗎?謝謝 – DebanjanB

回答

0

硒2.5.3只適用於46歲及以上的火狐。你需要使用硒3和從Firefox 47以上的更新。您還需要使用geckodriver。

+0

謝謝你...我嘗試了它的工作 –

相關問題