View Source Improve this doc

window

Protocol binding to handle with tabs in the browser.

Usage

1
browser.window([windowHandle]);

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
browser.window('{dc30381e-e2f3-9444-8bf3-12cc44e8372a}');
// using tab name attribute
browser.window('my tab');
// close the current window
browser.window();