UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

27 lines (21 loc) 776 B
/** * * Maximize the specified window if not already maximized. If the :windowHandle URL parameter is "current", * the currently active window will be maximized. * * @param {String=} windowHandle window to maximize (if parameter is falsy the currently active window will be maximized) * * @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/window/:windowHandle/maximize * @type protocol * */ module.exports = function windowHandleMaximize (windowHandle) { if (typeof windowHandle !== 'string') { windowHandle = 'current'; } var requestOptions = { path: '/session/:sessionId/window/' + windowHandle + '/maximize', method: 'POST' }; return this.requestHandler.create(requestOptions); };