* 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 })
| 2220 | * rect. |
| 2221 | */ |
| 2222 | setRect({ x, y, width, height }) { |
| 2223 | return this.driver_.execute( |
| 2224 | new command.Command(command.Name.SET_WINDOW_RECT).setParameters({ |
| 2225 | x, |
| 2226 | y, |
| 2227 | width, |
| 2228 | height, |
| 2229 | }), |
| 2230 | ) |
| 2231 | } |
| 2232 | |
| 2233 | /** |
| 2234 | * Maximizes the current window. The exact behavior of this command is |
no test coverage detected