window

Protocol binding to handle with tabs in the browser.

Usage

1
client.window([windowHandle]).then(callback);

Parameters

Param Type Details
windowHandle
optional
String the window to change focus to

Example

window.js
1
2
3
4
5
6
7
8
9
// change focus to another window
// using window handle
client.window('{dc30381e-e2f3-9444-8bf3-12cc44e8372a}');

// using tab name attribute
client.window('my tab');

// close the current window
client.window();