EOFError,我的最小硒测试会怎样?如何解决? [英] EOFError, what happen to my minitest selenium test? how to fix it?

查看:63
本文介绍了EOFError,我的最小硒测试会怎样?如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ubuntu更新后,我的最小硒测试出现错误,说:

After my ubuntu updates, my minitest selenium test got an error, saying:

EOFError:         EOFError: end of file reached

,它会打开许多​​空白的Google chrome窗口作为功能测试总数.

我的Ubuntu 16.04更新是(昨天一切正常,直到系统进行了更新):

my Ubuntu 16.04 updates was (yesterday everything works fine until the system made an update):

Commandline: aptdaemon role='role-commit-packages' sender=':1.105'
Upgrade: snap-confine:amd64 (1.0.42-0ubuntu3~16.04.1, 1.0.43-0ubuntu1~16.04.1), google-chrome-stable:amd64 (53.0.2785.143-1, 54.0.2840.59-1), ubuntu-core-launcher:amd64 (1.0.42-0ubuntu3~16.04.1, 1.0.43-0ubuntu1~16.04.1), libtracker-sparql-1.0-0:amd64 (1.6.2-0ubuntu1, 1.6.2-0ubuntu1.1)

在我的 test_helper.rb 中,我有:

Capybara.register_driver :selenium_chrome do |app|
  Capybara::Selenium::Driver.new(app, :browser => :chrome)
end

Capybara.current_driver = :selenium_chrome
Capybara.javascript_driver = :selenium_chrome
Capybara.default_driver = :selenium_chrome

我尝试卸载Google Chrome,并使用了 Chromium浏览器,并且运行正常. 我想知道如何使用Google Chrome浏览器.

I tried to uninstall Google Chrome and used Chromium browser and it works fine. I wanna know how to do it with Google Chrome browser.

有人知道如何解决吗?

请帮助!

推荐答案

我不确定这是否有帮助,但是我问了类似的问题 chromedriver-helper .该自述文件表示尝试在rails应用程序中运行chromedriver-update,并清除了所有内容.

I'm not sure if this is going to help, but I asked a similar question here and was able to determine that I was using a gem called chromedriver-helper. That readme said to try running chromedriver-update within the rails app and that cleared everything up.

这篇关于EOFError,我的最小硒测试会怎样?如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆