Increases the window to the maximum available size without going full-screen.

Usage

                    .window.maximize([callback])
                

Example

module.exports = {
 'maximize current window': function (browser) {
    browser.window.maximize(function () {
      console.log('window maximized successfully');
    });
  },

  'maximize current window using ES6 async/await': async function (browser) {
    await browser.window.maximize();
  }
}

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

See also

W3C WebDriver spec