如何防止Firefox在安全模式下启动? [英] How to prevent Firefox from starting in safe mode?

查看:423
本文介绍了如何防止Firefox在安全模式下启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Selenium运行Rails测试套件通常会以Start in Safe Mode?的方式打开Firefox。对话。有没有办法可以1)禁用这个,或2)添加一个脚本,将回答否,如果对话框出现?

解决方案

对于 1)禁用此功能:



您可以创建自己的自定义配置文件。

对于 2)添加脚本以回答否 使用 Autoit 编写脚本用于回答NO并在你的硒程序中使用它。


Running a Rails test suite with Selenium often opens Firefox with the "Start in Safe Mode?" dialog. Is there a way to either 1) disable this, or 2) add a script that will answer "No" if the dialog appears?

解决方案

For 1)Disable this:

You can create your own custom profile.

For 2)Add a script to answer 'NO'

Use Autoit to write a script for answering NO and use that in your selenium program.

这篇关于如何防止Firefox在安全模式下启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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