wallaby v0.1.0 Wallaby.Driver

List of all endpoints to implement for webdriver protocol

MethodURI TemplateCommand
POST/session New Session
DELETE/session/{session id} Delete Session
POST/session/{session id}/url Get
GET/session/{session id}/url Get Current URL
POST/session/{session id}/back Back
POST/session/{session id}/forward Forward
POST/session/{session id}/refresh Refresh
GET/session/{session id}/title Get Title
GET/session/{session id}/window Get Window Handle
DELETE/session/{session id}/window Close Window
POST/session/{session id}/window Switch To Window
GET/session/{session id}/window/handles Get Window Handles
POST/session/{session id}/window/fullscreen Fullscreen Window
POST/session/{session id}/window/maximize Maximize Window
POST/session/{session id}/window/size Set Window Size
GET/session/{session id}/window/size Get Window Size
POST/session/{session id}/frame Switch To Frame
POST/session/{session id}/frame/parent Switch To Parent Frame
POST/session/{session id}/element Find Element
POST/session/{session id}/element/{element id}/element Find Element From Element
POST/session/{session id}/elements Find Elements
POST/session/{session id}/element/{element id}/elements Find Elements From Element
GET/session/{session id}/element/active Get Active Element
GET/session/{session id}/element/{element id}/selected Is Element Selected
GET/session/{session id}/element/{element id}/attribute/{name} Get Element Attribute
GET/session/{session id}/element/{element id}/property/{name} Get Element Property
GET/session/{session id}/element/{element id}/css/{property name} Get Element CSS Value
GET/session/{session id}/element/{element id}/text Get Element Text
GET/session/{session id}/element/{element id}/name Get Element Tag Name
GET/session/{session id}/element/{element id}/rect Get Element Rect
GET/session/{session id}/element/{element id}/enabled Is Element Enabled
GET/session/{session id}/source Get Page Source
POST/session/{session id}/execute/sync Execute Script
POST/session/{session id}/execute/async Execute Async Script
GET/session/{session id}/cookie/{name} Get Cookie
POST/session/{session id}/cookie Add Cookie
DELETE/session/{session id}/cookie/{name} Delete Cookie
DELETE/session/{session id)/cookie Delete All Cookies
POST/session/{session id}/timeouts Set Timeout
POST/session/{session id}/actions Perform Actions
DELETE/session/{session id}/actions Releasing Actions
POST/session/{session id}/element/{element id}/click Element Click
POST/session/{session id}/element/{element id}/clear Element Clear
POST/session/{session id}/element/{element id}/sendKeys Element Send Keys
POST/session/{session id}/alert/dismiss Dismiss Alert
POST/session/{session id}/alert/accept Accept Alert
GET/session/{session id}/alert/text Get Alert Text
POST/session/{session id}/alert/text Send Alert Text
GET/session/{session id}/screenshot Take Screenshot
GET/session/{session id}/element/{element id}/screenshot Take Element Screenshot

Summary

Functions

Gets the value of an elements attribute

Clears the value in an element

Clicks an element

Finds an element on the page for a session. If an element is provided then the query will be scoped to within that element

Gets the size of the window

Gets the selected value of the element

Sets the value of an element

Sets the size of the window

Takes a screenshot

Gets the text for an element

Visits a specific page

Types

method :: :post | :get | :delete
params :: %{using: String.t, value: query}

Functions

attribute(node, name)

Gets the value of an elements attribute

clear(node)

Clears the value in an element

click(node)

Clicks an element

create(server)
find_elements(session, query)

Finds an element on the page for a session. If an element is provided then the query will be scoped to within that element.

get_window_size(session)

Gets the size of the window

selected(node)

Gets the selected value of the element.

For Checkboxes and Radio buttons it returns the selected option. For options selects it returns the selected option

set_value(node, value)

Sets the value of an element.

set_window_size(session, width, height)

Sets the size of the window.

take_screenshot(session)

Takes a screenshot.

text(node)

Gets the text for an element

visit(session, path)

Visits a specific page.