0

我正在尝试请求一个页面并对其进行检查,但我得到:

** (exit) exited in: GenServer.call(Hound.SessionServer, {:change_session0.100.0>, :default, []}, 60000)
** (EXIT) an exception was raised:
 ** (MatchError) no match of right hand side value: {:error, :econnrefused}

            (hound) lib/hound/session_server.ex:78: Hound.SessionServer.hall/3

我的代码:

Hound.start_session
Hound.Helpers.navigate_to("http://example.com")
Hound.end_session

它出什么问题了?

4

1 回答 1

-1

在您的正下方,您defmodule将要包含该行use Hound.Helpers

然后你的代码应该是这样的:

Hound.start_session

navigate_to('www.website.com')

Hound.end_session
于 2018-10-02T13:53:54.920 回答