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.

This command is deprecated and will be removed soon. Make sure you don’t use it in your automation/test scripts anymore to avoid errors. Please use the elementIdRect command instead.

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})