Selenium启动最新的火狐浏览器异常排查

报错如下:

WebDriverException: Message: 'Can\'t load the profile

打开谷歌浏览器和IE浏览器均正常

网上查阅资料,疑似与selenium版本相关联。前端时间因为RobotFramework无法导入selenium2Library 库,因此按照书上提示安装了2.32.0版本的selenium

C:\Users\LENOVO>pip show selenium
Name: selenium
Version: 2.32.0
Summary: Python bindings for Selenium
Home-page: http://code.google.com/p/selenium/
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Location: c:\python27\lib\site-packages
Requires:

 

使用 pip install -U selenium 更新selenium版本到最新(3.4.2)

运行脚本正常

但此时RIDE 无法导入selenium2Library 库

解决方法:


pip show robotframework                                   2.8.5
pip show robotframework-selenium2library           1.5.0
pip show selenium                                              2.44

火狐浏览器33.0(32位)       (高级->设置火狐浏览器不更新) 

顺便可以安装一些常用插件Firebug  FirePath 、 Selenium IDE 、 Selenium IDE button、SQLite  Manager

posted @ 2017-05-18 22:37  新小浪  阅读(599)  评论(0编辑  收藏  举报

超级玛丽的微博

链接