* Retrieves a rect describing the current top-level window's size and * position. * * @return {!Promise<{x: number, y: number, width: number, height: number}>} * A promise that will resolve to the window rect of the current window.
()
| 2328 | * A promise that will resolve to the window rect of the current window. |
| 2329 | */ |
| 2330 | getRect() { |
| 2331 | return this.driver_.execute(new command.Command(command.Name.GET_WINDOW_RECT)) |
| 2332 | } |
| 2333 | |
| 2334 | /** |
| 2335 | * Sets the current top-level window's size and position. You may update just |