UNPKG

webdriverjs

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

15 lines (11 loc) 406 B
module.exports = function windowHandleMaximize (window_handle, callback) { if (typeof window_handle === 'function') { callback = window_handle; window_handle = 'current'; } var requestOptions = { path:"/session/:sessionId/window/" + (window_handle || 'current') + "/maximize", method:"POST" }; this.requestHandler.create(requestOptions,callback); };