Project2501

An Elixir client for Firefox's Marionette.

Installation

Add project2501 to your list of dependencies in mix.exs:

def deps do
  [{:project2501, "~> 0.1.0"}]
end

Then configure the host and port of the server:

config :project2501,
  host: 'localhost',
  port: 2828

Example

Start Firefox with Marionette running:

firefox --marionette

Then from iex:

iex> Project2501.order("Navigate", %{url: "http://example.org"})
%Project2501.Wire.Response{error: nil, message_id: 829347167, result: %{}}

iex> Project2501.order("TakeScreenshot")
%Project2501.Wire.Response{error: nil, message_id: 392313200, result: %{"value" => ...}}