Hides the window in the system tray. If the window happens to be in fullscreen mode, it is restored the normal state then it will be "iconified" - minimize or hide the window from the visible screen.

Usage

                    .window.minimize([callback])
                

Example

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

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

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

See also

W3C WebDriver spec