Retrieve the list of all window handles available to the session.

Usage:

Parameters:

Name Type description
callback function

Callback function which is called with the result value.

Example:

 this.demoTest = function (browser) {
   browser.windowHandles(function(result) {
     // An array of window handles.
     console.log(result.value);
   });
}

W3C WebDriver spec: