I wrote a .NET app that does some automation on a google page using the Chrome Selenium Driver. My app works perfect if I have the Chrome window visible or in the background, but fails if I minimize it. I get a QpenQA.Selenium.ElementNotVisibleException error.
So, all I need is a way for me to start the Google Chrome browser without a minimize box and, if it's possible, almost out of view of the screen. I've solved the out of the bounds of the screen problem by setting :
cdriver.Manage().Window.Position = new Point(-2000,0);
So the user doesn't see the window now. The problem is that he can still minimize it by clicking on the taskbar icon. Is there a way to prevent minimizing on a specific window or block it from appearing in the taskbar?