Determine an element's location on the page. The point (0, 0) refers to the upper-left corner of the page.

The element's coordinates are returned as a JSON object with x and y properties.

Usage:

Parameters:

Name Type description
webElementId string

The Web Element ID of the element to route the command to.

callback function

Callback function which is called with the result value.

Returns:

Type description
object The X and Y coordinates for the element on the page.