WindowHandle

import {WindowHandle} from 'cabbie-sync';

Window object

Properties

id: string

The internal selenium id

Methods

activate(): ActiveWindow

Shift the focus to this window (after calling this, browser.activeWindow refers to this window)

getPosition(): {x:number, y:number}

Get the position of a window

getSize(): {width:number, height:number}

Get the size of a window

maximize(): void

Maximize a window

position(x, y): void

x
number
y
number

Position a window

resize(width, height): void

width
number
height
number

Get the size of a window