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

Method setSize

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

* Sets the width and height of the current window. (window.resizeTo) * @param x * @param y * @param width * @param height * @param windowHandle * @returns {Promise }

({ x = 0, y = 0, width = 0, height = 0 }, windowHandle = 'current')

Source from the content-addressed store, hash-verified

2294 * @returns {Promise<void>}
2295 */
2296 async setSize({ x = 0, y = 0, width = 0, height = 0 }, windowHandle = 'current') {
2297 if (windowHandle !== 'current') {
2298 this.log_.warning(`Only 'current' window is supported for W3C compatible browsers.`)
2299 }
2300
2301 await this.setRect({ x, y, width, height })
2302 }
2303}
2304
2305/**

Callers

nothing calls this directly

Calls 2

setRectMethod · 0.95
warningMethod · 0.80

Tested by

no test coverage detected