简体   繁体   English

带无头 Chrome 的小袋鼠崩溃

[英]Wallaby with headless Chrome crashes

I am developing an application based on Elixir and Phoenix which also uses the Wallaby application for HTTP based testing in a headless Chrome browser.我正在开发一个基于 Elixir 和 Phoenix 的应用程序,它还使用 Wallaby 应用程序在无头 Chrome 浏览器中进行基于 HTTP 的测试。

Now recently I receive a rather unwieldy error message when executing my ExUnit tests:最近,我在执行 ExUnit 测试时收到一条相当笨拙的错误消息:

** (MatchError) no match of right hand side value:
    {:error, {:wallaby, {:bad_return, 
      {{Wallaby, :start, [:normal, []]},
      {:EXIT,
        {%Protocol.UndefinedError{description: "", protocol: Enumerable, value: nil},
        [{Enumerable, :impl_for!, 1, [file: '/root/deb/elixir_1.8.0-1/lib/elixir/lib/enum.ex', line: 1]},
         {Enumerable, :slice, 1, [file: '/root/deb/elixir_1.8.0-1/lib/elixir/lib/enum.ex', line: 193]},
         {Enum, :backwards_compatible_slice, 1, [file: 'lib/enum.ex', line: 2871]},
         {Enum, :slice_any, 3, [file: 'lib/enum.ex', line: 3075]},
         {Enum, :at, 3, [file: 'lib/enum.ex', line: 381]},
         {Wallaby.Experimental.Chrome, :validate, 0, [file: 'lib/wallaby/experimental/chrome.ex', line: 36]},
         {Wallaby, :start, 2, [file: 'lib/wallaby.ex', line: 27]},
         {:application_master, :start_it_old, 4, [file: 'application_master.erl', line: 277]}]}}}}}}

test/test_helper.exs:4: (file)
(elixir) lib/code.ex:767: Code.require_file/2
(elixir) lib/enum.ex:769: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:769: Enum.each/2

I am running a Debian GNU/Linux 9 "Stretch" and installed Elixir as a .deb package with version 1.8.0-1 from binaries.erlang-solutions.com .我正在运行 Debian GNU/Linux 9 "Stretch" 并从binaries.erlang-solutions.com将 Elixir 安装为 1.8.0-1 版的.deb包。 Wallaby is locked to {:wallaby, "~> 0.21.0"} . Wallaby 被锁定到{:wallaby, "~> 0.21.0"}

Ideas on how to fix this would be greatly appreciated.关于如何解决这个问题的想法将不胜感激。

The problem is caused by Wallaby 0.21.0 not being able to handle a ChromeDriver version higher than 2.x, but ChromeDriver versions as high as 71.x are already around.该问题是由 Wallaby 0.21.0 无法处理高于 2.x 的 ChromeDriver 版本引起的,但高达 71.x 的 ChromeDriver 版本已经存在。

This has been fixed by this pull request , which has been merged into Wallaby master but doesn't seem to be released yet.这个问题已经被这个 pull request修复了,它已经被合并到 Wallaby master但似乎还没有发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Meteor 在 Debian 上使用 Headless Chrome(带有 puppeteer)时提供的旧包服务 10 - Meteor Legacy bundle served when using Headless Chrome (with puppeteer) on Debian 10 SeleniumException:java.awt.AWTException:无头环境:Selenium无头 - SeleniumException: java.awt.AWTException: headless environment: Selenium Headless 在无头 debian 上自动在前台启动脚本 - Automatically starting script in foreground on headless debian 在 Debian 服务器上使用带有无头模式的 Selenium - Using Selenium with headless mode on Debian server 如何在 Debian headless (WSL 2) 上解锁 Gnome Keyring 并使其在 Python 中工作? - How to unlock Gnome Keyring on Debian headless (WSL 2) and make it work in Python? Debian 9 openjdk-7-jre和openjdk-7-jre-headless - Debian 9 openjdk-7-jre and openjdk-7-jre-headless Debian上的序曲工具每次都会崩溃 - Overture tool on Debian crashes everytime 仅将CSS应用于Linux chrome,而不应用于Windows chrome - Apply css only for linux chrome but not for windows chrome mysql 服务器崩溃,并报告了一个表的问题 - mysql server crashes, and reported problems with a table 硒chromedriver vps无头有时会引发ConnectionResetError:[Errno 104]对等重置连接 - selenium chromedriver headless on vps sometimes throws ConnectionResetError: [Errno 104] Connection reset by peer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM