elementIdLocationInView
Determine an element’s location on the screen once it has been scrolled into view.
Note: This is considered an internal command and should only be used to determine
an element’s location for correctly generating native events.
Depcrecated command, please use elementIdRect
.
Usage
1
| browser.elementIdLocationInView(ID);
|
Parameters
Param |
Type |
Details |
ID |
String |
ID of a WebElement JSON object to route the command to |
Returns
- <Object>: The X and Y coordinates for the element (
{x:number, y:number}
)