Firefox:崩溃后禁用自动安全模式 [英] Firefox: Disable automatic safe mode after crash

查看:166
本文介绍了Firefox:崩溃后禁用自动安全模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何防止崩溃后Firefox显示安全模式对话框?

How to prevent firefox showing the safe mode dialog after the crash?

阻止自动硒测试。

It blocks the automatic selenium tests.

推荐答案

我不知道你是如何得到这个和你的测试流程是什么。所以我不能重现和测试解决方案。但Firefox 安全模式可以通过设置键 toolkit.startup.max_resumed_crashes about:config -1

I have no idea how you got this and what your testing flow is. So I can't reproduce and test the solution. But Firefox Safe Mode can be disabled by setting the key toolkit.startup.max_resumed_crashes in about:config to -1.

以下是如何在C#绑定中启动Firefox的首选项:
$ b

Here's how to start Firefox with that preference set in C# binding:

FirefoxProfile profile = new FirefoxProfile();
profile.SetPreference("toolkit.startup.max_resumed_crashes", "-1");

IWebDriver driver = new FirefoxDriver(profile);

这篇关于Firefox:崩溃后禁用自动安全模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆