STB Admin

4,970 points Super Administrator

0

Robot key events are the ideal way to do that. Selenium has JavaScript in in core. Minimizing the browser window is beyond the scope of JavaScript, so even selenium can no do that. So, the ideal way is to use Robot classes.

Apart from this, if you just want browser window to be out of your sight, you can use below command to move the window away.