Firefox已停止为Selenium 2.45工作

时间:2015-08-12 19:44:25

标签: firefox selenium selenium-webdriver maven-3

当我在intelliJIDEA上运行测试套装时,我遇到了这个问题。

错误详情如下:

Problem signature:
Problem Event Name: APPCRASH
Application Name:   firefox.exe
Application Version:    39.0.0.5659
Application Timestamp:  55933a80
Fault Module Name:  xul.dll
Fault Module Version:   39.0.0.5659
Fault Module Timestamp: 55934bcf
Exception Code: c0000005
Exception Offset:   001e39c7
OS Version: 6.1.7601.2.1.0.256.4
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

Firefox版本39和selenium版本2.45

我为我的项目尝试了mvn clean install,但在本地运行测试时,firfox总是崩溃。

任何解决方案?

2 个答案:

答案 0 :(得分:0)

根据您提供的信息,security issue Windows 7 抱怨,猜测有某种弹出窗口会阻止进一步的互动。

尝试将 Selenium 更新为2.47.1的最新版本,看看是否有帮助。

如果它适用于以前版本的 Firefox ,请尝试downgrade browser

答案 1 :(得分:0)

按照以下步骤禁用弹出和错误报告。这将有助于硒测试继续进行。

禁用Mozilla崩溃弹出窗口的步骤

1.1通过组策略编辑器关闭错误对话框

  1. 在“开始”搜索框或“运行”对话框中键入gpedit.msc,打开“组策略编辑器”。
  2. 导航至计算机配置>管理模板> Windows组件> Windows错误报告。双击右侧窗格中的“防止显示关键错误的用户界面”。 enter image description here
  3. 单击单选按钮启用,然后按确定。 enter image description here 1.2通过注册表关闭错误对话框

  4. 在“开始”搜索框或“Win + R运行”对话框中键入regedit,打开注册表编辑器。

  5. 导航到以下注册表项:

  6. HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Windows错误报告

    1. 双击右侧的DontShowUI条目并将其值更改为1,然后关闭注册表编辑器。
      enter image description here 1.3禁用Windows错误报告

    2. 转到“控制面板”>行动中心>更改操作中心设置(左上角)>问题报告设置。 enter image description here

    3. 选择“从不检查解决方案”,然后单击“确定”。在检查之前询问也有效,因为对话框似乎不会问您。
相关问题