WindowHandle
import {WindowHandle} from 'cabbie-async';
Window object
Properties
id: string
The internal selenium id
Methods
activate(): Promise<ActiveWindow>
Shift the focus to this window (after calling this, browser.activeWindow refers to this window)
getPosition(): Promise<{x:number, y:number}>
Get the position of a window
getSize(): Promise<{width:number, height:number}>
Get the size of a window
maximize(): Promise<void>
Maximize a window
position(x, y): Promise<void>
- x
- number
- y
- number
Position a window
resize(width, height): Promise<void>
- width
- number
- height
- number
Get the size of a window