将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:inlocked' 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:ininitialize' 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:infor' 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:inbrowser' 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:invisit' 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:在`'
答案 0 :(得分:4)
如果没有selenium-webdriver v3和geckodriver,Firefox v48将无法使用(在Capybara中)。有一个测试版的selenium-webdriver v3,但它目前缺少一些关键功能(例如,不能读取表单元素的当前值),并且还没有真正准备好进行实际测试。现在降级到47。