Skip to content
NickAb edited this page Oct 28, 2014 · 5 revisions

Windows Phone Driver implements subset of JSON Wire Protocol

Supported commands

NewSession

POST /session Create a new session.


GetCurrentWindowHandle

GET /session/:sessionId/window_handle Retrieve the current window handle.


GoBack

POST /session/:sessionId/back Navigate backwards in the browser history, if possible.


ExecuteScript

For details see Command Execute Script

POST /session/:sessionId/execute Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame.


Screenshot

GET /session/:sessionId/screenshot Take a screenshot of the current page.


Close

DELETE /session/:sessionId/window Close the current window.


GetWindowSize

GET /session/:sessionId/window/:windowHandle/size Get the size of the specified window.


GetPageSource

GET /session/:sessionId/source Get the current page source.


FindElement

POST /session/:sessionId/element Search for an element on the page, starting from the document root.


FindElements

POST /session/:sessionId/elements Search for multiple elements on the page, starting from the document root.

See Finding Elements for supported strategies.


FindChildElement

POST /session/:sessionId/element/:id/element Search for an element on the page, starting from the identified element.

See Finding Elements for supported strategies.


FindChildElements

POST /session/:sessionId/element/:id/elements Search for multiple elements on the page, starting from the identified element.


ClickElement

POST /session/:sessionId/element/:id/click Click on an element.


GetElementText

GET /session/:sessionId/element/:id/text Returns the visible text for the element.


SendKeysToElement

POST /session/:sessionId/element/:id/value Send a sequence of key strokes to an element.


GetElementAttribute

GET /session/:sessionId/element/:id/attribute/:name Get the value of an element's attribute.

Added in v 0.1.5414.18473


IsElementDisplayed

GET /session/:sessionId/element/:id/displayed Determine if an element is currently displayed.


GetElementLocation

GET /session/:sessionId/element/:id/location Determine an element's location on the page.


GetOrientation

GET /session/:sessionId/orientation Get the current browser orientation.


GetAlertText

GET /session/:sessionId/alert_text Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.


AcceptAlert

POST /session/:sessionId/accept_alert Accepts the currently displayed alert dialog.


DismissAlert

POST /session/:sessionId/dismiss_alert Dismisses the currently displayed alert dialog.


MouseMoveTo

POST /session/:sessionId/moveto Move the mouse by an offset of the specificed element.


MouseClick

POST /session/:sessionId/click Click any mouse button (at the coordinates set by the last moveto command).


MouseDown

POST /session/:sessionId/buttondown Click and hold the left mouse button (at the coordinates set by the last moveto command).


MouseUp

POST /session/:sessionId/buttonup Releases the mouse button previously held (where the mouse is currently at).


TouchSingleTap

POST /session/:sessionId/touch/click Single tap on the touch enabled device.


TouchScroll

POST session/:sessionId/touch/scroll Scroll on the touch screen using finger based motion events.

POST session/:sessionId/touch/scroll Scroll on the touch screen using finger based motion events.


TouchFlick

POST session/:sessionId/touch/flick Flick on the touch screen using finger motion events.

POST session/:sessionId/touch/flick Flick on the touch screen using finger motion events.