Browser is not maximized if the test execution is in background, ie started execution as part of CI. And so some of my test cases are failed.
But if i manually trigger my tests from command line, all the tests are executed in maximized window.
I tried below options:
Driver.Manage().Window.Maximize();
Driver.Manage().Window.FullScreen();
System.Drawing.Size size = _parallelConfig.Driver.Manage().Window.Size;
Driver.Manage().Window.Size = new System.Drawing.Size(size.Width, size.Height);
Please suggest me a solution for this. Most of my test cases are failed due to this.
Regards
Anfas