解决Firefox浏览器每次打开都弹出导入向导的问题

 

 

每次打开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!

 

 

 

转载于:https://www.cnblogs.com/wozijisun/p/4623837.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值