每次打开Firefox浏览器都会弹出导入向导这个页面,只有这个页面关闭后,Firefox界面才会打开。

解决办法:

C:\Users\{用户名}\AppData\Roaming\Mozilla\Firefox\profiles.ini

把profiles.ini文件中IsRelative=1修改为IsRelative=0

报错:

in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)

由于Firefox的更新较快,可能当前的gems包不再支持相关的操作了。

建议下载最新的gems包

https://rubygems.org/gems/selenium-webdriver

It seems Selenium Webdriver gets frequent updates to keep up with Firefox. But how do you know which version you need?  Hopefully this procedure will work even as versions change:

  1. Go to http://www.seleniumhq.org/download/.

  2. Scroll down to Selenium Client & WebDriver Language Bindings.

  3. In that section, in the Ruby language line, click on "Change Log" (direct link).

  4. In the Change Log, determine which version of Selenium you need for your version of Firefox.

If you're using Bundler, run bundle show selenium-webdriver to see which version you have.  To update, for example to 2.35.0, add this line to your Gemfile:

gem 'selenium-webdriver', '2.35.0'

and then run bundle update to install.  If you are using Spork, remember to re-start it before re-running your tests.

Update One StackOverflow answer indicates that the Change Log may be updated sooner in the source code repository than at seleniumhq.org.  The repository Change Log for Ruby is here:  https://github.com/SeleniumHQ/selenium/blob/master/rb/CHANGES.

Downgrading Firefox

If you need to downgrade Firefox on Ubuntu 12.04, this answer explains how to go back to Firefox 20.  A more general description of a way to switch to any version of Firefox is given here.  Then use this answer to put Firefox updates on hold until Selenium releases an update that works with the later version of Firefox.

In my case, I downgraded Firefox only to discover that Selenium Webdriver had recently been updated to handle the latest version, so check for Selenium updates first!

 

最新文章

  1. NoSQL指南
  2. DAY5 python内置函数+验证码实例
  3. 背水一战 Windows 10 (8) - 控件 UI: StateTrigger
  4. 【leetcode】N-Queens
  5. PHP中的闭包和匿名函数
  6. 为什么引用不了App_Code里的类
  7. HDU 1224 Free DIY Tour
  8. python 处理 Excel 表格
  9. CCF NOIP2015复赛获奖分数线及名额分配办法
  10. window下redis的安装
  11. 【转】rinex
  12. HDU 2051(进制转换)
  13. Java中如何创建一个新的对象的/Creating Objects/
  14. jumpserver安装
  15. WIFI智能配网 - SmartConfig
  16. 如何在js中使用递归
  17. ocp linux 基础要点
  18. typeof(), __typeof(), __typeof__(), -isKindOfClass:的区别
  19. android Keycode 完全对照表
  20. 团队作业——Alpha冲刺 5/12

热门文章

  1. 常用JQ特效代码
  2. onselectstart
  3. 李洪强iOS经典面试题下
  4. 细说jQuery原型的创建和实现原理,并用实例简单模仿
  5. WOFF mime类型
  6. 火狐的调试利器-----Firebug
  7. js 日期
  8. WordPress插件入口菜单创建的位置代码
  9. PHP中文函数顺序排列一数组且其序数不变
  10. MyEclipse tomcat7.x 自定义项目部署路径