Firefox crashes when started by Selenium firefox d

2019-01-11 22:38发布

I have call new instance firefox browser by Selenium webdriver

driver = new FirefoxDriver(); 

but there are a error

Problem Event Name: APPCRASH
Application Name: firefox.exe Application Version: 38.0.1.5611
Application Timestamp: 55540a1a Fault Module Name: xul.dll Fault Module Version: 38.0.1.5611 Fault Module Timestamp: 55541969 Exception Code: c0000005 Exception Offset: 0035669b OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt

I must click close programme to continue and firefox browser is diplayed

Firefox 38 Selenium 2.45 windown 7 x64 or windown 8 x64

Thanks

4条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-11 23:03

Seems like a compatibility issue to me. Firefox 38 is not officially supported by Selenium 2.45.

Downgrade to 35 or lower from here. You can also find the Selenium changelog here. See another answer here.

查看更多
小情绪 Triste *
3楼-- · 2019-01-11 23:11

I've same problem on Firefor 47.0 (stub). Reinstalling doesn't solve problem.

Update to 47.0.1 or download Firefox 45.0 and selenium will work

查看更多
我想做一个坏孩纸
4楼-- · 2019-01-11 23:11

Even I was facing the same issue, its related to compatibility issue,I just downloaded latest version of webdriver(i.e Selenium-java-2.46.0) and firefox v 38.0.5, jdk(1.8_31) n it worked.

查看更多
劫难
5楼-- · 2019-01-11 23:16

It looks like someone has a bugfix in the pipeline for this as well. https://github.com/SeleniumHQ/selenium/commit/6fc17a0cba238af9d76f5fe6e32f73ac8958c19e

查看更多
登录 后发表回答