* 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')
| 2331 | * @returns {Promise<void>} |
| 2332 | */ |
| 2333 | async setSize({ x = 0, y = 0, width = 0, height = 0 }, windowHandle = 'current') { |
| 2334 | if (windowHandle !== 'current') { |
| 2335 | this.log_.warning(`Only 'current' window is supported for W3C compatible browsers.`) |
| 2336 | } |
| 2337 | |
| 2338 | await this.setRect({ x, y, width, height }) |
| 2339 | } |
| 2340 | } |
| 2341 | |
| 2342 | /** |