MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getRect

Method getRect

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

* Retrieves a rect describing the current top-level window's size and * position. * * @return {!Promise<{x: number, y: number, width: number, height: number}>} * A promise that will resolve to the window rect of the current window.

()

Source from the content-addressed store, hash-verified

2202 * A promise that will resolve to the window rect of the current window.
2203 */
2204 getRect() {
2205 return this.driver_.execute(new command.Command(command.Name.GET_WINDOW_RECT))
2206 }
2207
2208 /**
2209 * Sets the current top-level window's size and position. You may update just

Callers 1

getSizeMethod · 0.95

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected