I'm trying to request a page and inspect it but I get:
** (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
My code:
Hound.start_session
Hound.Helpers.navigate_to("http://example.com")
Hound.end_session
What's wrong with it?
Right below your
defmodule
you will want to include the lineuse Hound.Helpers
.Then your code should look something like this: