project2501 v0.1.0 Project2501 View Source

Client for Marionette.

The host and port for Marionette must be configured:

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

The server must be started before the application otherwise it’ll crash.

Link to this section Summary

Functions

Sends a command to Marionette. Every command is assumed to be a WebDriver command and shouldn’t be prefixed with WebDriver:

Link to this section Functions

Link to this function order(command, params \\ %{}) View Source

Sends a command to Marionette. Every command is assumed to be a WebDriver command and shouldn’t be prefixed with WebDriver:.

A %Project2501.Wire.Response{} struct is returned, see https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Protocol for more info.

Example

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