@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
21 lines (18 loc) • 643 B
JavaScript
/**
*
* 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://w3c.github.io/webdriver/webdriver-spec.html#dfn-maximize-window
* @type protocol
*
*/
let windowHandleMaximize = function (windowHandle = 'current') {
return this.requestHandler.create({
path: `/session/:sessionId/window/${windowHandle}/maximize`,
method: 'POST'
})
}
export default windowHandleMaximize