-
Notifications
You must be signed in to change notification settings - Fork 3
Supported Commands
Windows Phone Driver implements subset of JSON Wire Protocol
POST /session Create a new session.
GET /session/:sessionId/window_handle Retrieve the current window handle.
POST /session/:sessionId/back Navigate backwards in the browser history, if possible.
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.
GET /session/:sessionId/screenshot Take a screenshot of the current page.
DELETE /session/:sessionId/window Close the current window.
GET /session/:sessionId/window/:windowHandle/size Get the size of the specified window.
GET /session/:sessionId/source Get the current page source.
POST /session/:sessionId/element Search for an element on the page, starting from the document root.
POST /session/:sessionId/elements Search for multiple elements on the page, starting from the document root.
See Finding Elements for supported strategies.
POST /session/:sessionId/element/:id/element Search for an element on the page, starting from the identified element.
See Finding Elements for supported strategies.
POST /session/:sessionId/element/:id/elements Search for multiple elements on the page, starting from the identified element.
POST /session/:sessionId/element/:id/click Click on an element.
GET /session/:sessionId/element/:id/text Returns the visible text for the element.
POST /session/:sessionId/element/:id/value Send a sequence of key strokes to an element.
GET /session/:sessionId/element/:id/attribute/:name Get the value of an element's attribute.
Added in v 0.1.5414.18473
GET /session/:sessionId/element/:id/displayed Determine if an element is currently displayed.
GET /session/:sessionId/element/:id/location Determine an element's location on the page.
GET /session/:sessionId/orientation Get the current browser orientation.
GET /session/:sessionId/alert_text Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
POST /session/:sessionId/accept_alert Accepts the currently displayed alert dialog.
POST /session/:sessionId/dismiss_alert Dismisses the currently displayed alert dialog.
POST /session/:sessionId/moveto Move the mouse by an offset of the specificed element.
POST /session/:sessionId/click Click any mouse button (at the coordinates set by the last moveto command).
POST /session/:sessionId/buttondown Click and hold the left mouse button (at the coordinates set by the last moveto command).
POST /session/:sessionId/buttonup Releases the mouse button previously held (where the mouse is currently at).
POST /session/:sessionId/touch/click Single tap on the touch enabled device.
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.
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.