gpt4 book ai didi

Firefox:崩溃后禁用自动安全模式

转载 作者:行者123 更新时间:2023-12-01 09:27:09 25 4
gpt4 key购买 nike

如何防止Firefox在崩溃后显示安全模式对话框?
enter image description here

它会阻止自动 Selenium 测试。

最佳答案

我不知道你是怎么得到这个的,你的测试流程是什么。所以我无法重现和测试解决方案。但是火狐Safe Mode可以通过设置 key toolkit.startup.max_resumed_crashes 来禁用在 about:config-1 .

以下是使用 C# 绑定(bind)中设置的首选项启动 Firefox 的方法:

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

IWebDriver driver = new FirefoxDriver(profile);

关于Firefox:崩溃后禁用自动安全模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21287677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com