@testim/testim-cli
Version:
Command line interface for running Testing on you CI
17 lines (14 loc) • 359 B
JavaScript
/**
* Retrieve the current window handle.
*
* @returns {String} the current window handle
*
* @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/window_handle
* @type protocol
*
*/
module.exports = function windowHandle () {
return this.requestHandler.create(
'/session/:sessionId/window_handle'
);
};