elementIdSize

Determine an element’s size in pixels. The size will be returned as a JSON object with width and height properties.

Depcrecated command, please use elementIdRect.

Usage

1
browser.elementIdSize(ID);

Parameters

Param Type Details
ID String ID of a WebElement JSON object to route the command to

Returns

  • <Object>: The width and height of the element, in pixels ({width:number, height:number})