Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evuez/project2501

An Elixir client for Firefox's Marionette.
https://github.com/evuez/project2501

Last synced: 1 day ago
JSON representation

An Elixir client for Firefox's Marionette.

Awesome Lists containing this project

README

        

# Project2501

An Elixir client for Firefox's [Marionette](https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Protocol).

## Installation

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

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

Then configure the `host` and `port` of the server:

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

## Example

Start Firefox with Marionette running:

firefox --marionette

Then from `iex`:

```elixir
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" => ...}}
```