https://github.com/evuez/project2501
An Elixir client for Firefox's Marionette.
https://github.com/evuez/project2501
Last synced: 28 days ago
JSON representation
An Elixir client for Firefox's Marionette.
- Host: GitHub
- URL: https://github.com/evuez/project2501
- Owner: evuez
- License: mit
- Created: 2017-10-28T09:30:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T09:46:26.000Z (over 7 years ago)
- Last Synced: 2024-10-19T17:30:23.024Z (6 months ago)
- Language: Elixir
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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" => ...}}
```