MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getRect

Method getRect

javascript/selenium-webdriver/lib/webdriver.js:3084–3086  ·  view source on GitHub ↗

* Returns an object describing an element's location, in pixels relative to * the document element, and the element's size in pixels. * * @return {!Promise<{width: number, height: number, x: number, y: number}>} * A promise that will resolve with the element's rect.

()

Source from the content-addressed store, hash-verified

3082 * A promise that will resolve with the element's rect.
3083 */
3084 getRect() {
3085 return this.execute_(new command.Command(command.Name.GET_ELEMENT_RECT))
3086 }
3087
3088 /**
3089 * Tests whether this element is enabled, as dictated by the `disabled`

Callers

nothing calls this directly

Calls 1

execute_Method · 0.95

Tested by

no test coverage detected