请考虑以下代码:

ffprofile = webdriver.FirefoxProfile('C:\Users\Me\AppData\Roaming\Mozilla\Firefox\Profiles\fdwfec0d.selenium')
browser = webdriver.Firefox(ffprofile)

当我在python脚本中运行此代码时,Firefox会显示一个用于检查插件兼容性的小窗口,然后无法启动 . 扩展兼容性窗口关闭,没有其他任何操作 .

但是,当我在交互式python shell中运行代码时,浏览器在检查兼容性后成功启动 .

有谁知道发生了什么?这可以修复吗?

我正在使用的配置文件安装了几个扩展 .

Python 2.7; Firefox 29.0.1;硒2.41.0