2016-11-11 151 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

谢谢你...我尝试了它的工作 –

相关问题