[英]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.