capybara firefox 48给出错误

时间:2016-08-11 06:42:10

标签: selenium firefox capybara

将firefox更新为版本48但它给出以下错误。任何帮助如何解决它:

  

Selenium :: WebDriver :: Error :: WebDriverError:无法在60秒内获得稳定的firefox连接(127.0.0.1:7055)       来自/Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:90:in connect_until_stable' from /Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:55:in阻止发布'       来自/Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/socket_lock.rb:43:in locked' from /Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/launcher.rb:51:in发布'       来自/Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/firefox/bridge.rb:43:in initialize' from /Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/driver.rb:53:in new'       来自/Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/driver.rb:53:in for' from /Library/Ruby/Gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver.rb:86:in for'       来自/ Library /Ruby / Gems/2.0.0/gems/capybara-2.6.2/lib/capybara/selenium/driver.rb:13:in browser' from /Library/Ruby/Gems/2.0.0/gems/capybara-2.6.2/lib/capybara/selenium/driver.rb:45:in访问'       来自/Library/Ruby/Gems/2.0.0/gems/capybara-2.6.2/lib/capybara/session.rb:232:in visit' from /Library/Ruby/Gems/2.0.0/gems/capybara-2.6.2/lib/capybara/dsl.rb:51:in块(2级)'       来自/Users/mesutgunes/scripts/capybara.rb:53       来自/ usr / bin / irb:12:在`'

1 个答案:

答案 0 :(得分:4)

如果没有selenium-webdriver v3和geckodriver,Firefox v48将无法使用(在Capybara中)。有一个测试版的selenium-webdriver v3,但它目前缺少一些关键功能(例如,不能读取表单元素的当前值),并且还没有真正准备好进行实际测试。现在降级到47。