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

Method getRect

javascript/selenium-webdriver/lib/webdriver.js:2330–2332  ·  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

2328 * A promise that will resolve to the window rect of the current window.
2329 */
2330 getRect() {
2331 return this.driver_.execute(new command.Command(command.Name.GET_WINDOW_RECT))
2332 }
2333
2334 /**
2335 * 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