* 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')
| 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 | /** |