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

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Example

module.exports = {
 'demo Test': function(browser) {
    browser.minimizeWindow(function(result) {
      console.log(result);
    });
  },

  'ES6 async demo Test': async function(browser) {
    const result = await browser.minimizeWindow();
    console.log('result value is:', result.value);
  }
}

W3C WebDriver spec