simple-browser-automation.md

June 18, 2017 ยท View on GitHub

Make sure to configure Hound first, or you will get an error.

Simple browser automation using Hound

Application.start :hound

defmodule Example do
  use Hound.Helpers

  def run do
    Hound.start_session

    navigate_to "http://akash.im"
    IO.inspect page_title()

    # Automatically invoked if the session owner process crashes
    Hound.end_session
  end
end

Example.run