Driver8.WireProtocol (driver8 v0.1.3-dev.1) View Source

This module covers values and structures from the webdriver spec

Link to this section Summary

Functions

Send error response stating that session_id client is trying to use cannot be found (was closed due to timeout, for example)

Utility method that does exactly that: sends json response and halts current connection processing

Utility method that does exactly that: sends json response and halts current connection processing

Send error response stating that driver was not able to create a new session

Send success response for given session_id and passing along return value (if any)

Send error response stating that driver encountered an unexpected error (with stacktrace, if possible)

Send error response stating that driver does not understand this particular command

Link to this section Functions

Link to this function

no_such_session(message \\ "")

View Source

Send error response stating that session_id client is trying to use cannot be found (was closed due to timeout, for example)

Link to this function

send_json_and_halt(conn, _)

View Source

Utility method that does exactly that: sends json response and halts current connection processing

Link to this function

send_json_and_halt(conn, status, body_map)

View Source

Utility method that does exactly that: sends json response and halts current connection processing

Link to this function

session_not_created(message \\ "")

View Source

Send error response stating that driver was not able to create a new session

Link to this function

success(session_id, value \\ %{})

View Source

Send success response for given session_id and passing along return value (if any)

Link to this function

unhandled_error(session_id, message \\ "", stack)

View Source

Send error response stating that driver encountered an unexpected error (with stacktrace, if possible)

Link to this function

unknown_command(session_id, message \\ "")

View Source

Send error response stating that driver does not understand this particular command