.exports() Suggest edits
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
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);
  }
}
                
            
            
            Parameters
| Name | Type | description | 
|---|---|---|
callbackOptional  | 
                    function | Optional callback function to be called when the command finishes.  |