* 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.
()
| 2202 | * A promise that will resolve to the window rect of the current window. |
| 2203 | */ |
| 2204 | getRect() { |
| 2205 | return this.driver_.execute(new command.Command(command.Name.GET_WINDOW_RECT)) |
| 2206 | } |
| 2207 | |
| 2208 | /** |
| 2209 | * Sets the current top-level window's size and position. You may update just |