elementIdRect

The Get Element Rect command returns the dimensions and coordinates of the given web element. The returned value is a dictionary with x. y, width and height properties.

Note: this command was recently added to the official Webdriver protocol and might not be working with current Selenium driver.

Usage

1
browser.elementIdRect(ID);

Parameters

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