* Sets the current top-level window's size and position. You may update just * the size by omitting `x` & `y`, or just the position by omitting * `width` & `height` options. * * @param {{x: (number|undefined), * y: (number|undefined), * width: (number|undefined),
({ x, y, width, height })
| 2346 | * rect. |
| 2347 | */ |
| 2348 | setRect({ x, y, width, height }) { |
| 2349 | return this.driver_.execute( |
| 2350 | new command.Command(command.Name.SET_WINDOW_RECT).setParameters({ |
| 2351 | x, |
| 2352 | y, |
| 2353 | width, |
| 2354 | height, |
| 2355 | }), |
| 2356 | ) |
| 2357 | } |
| 2358 | |
| 2359 | /** |
| 2360 | * Maximizes the current window. The exact behavior of this command is |
no test coverage detected