Maximizing a Window using C# in Selenium
Using Maximizing a window slightly differs and this is the code below we need to use for maximizing any browser window in C#
//The code for maximizing window can be either before getting the url or even after getting the url IWebDriver driver = new InternetExplorerDriver(); driver.Navigate().GoToUrl("http://www.google.com"); //Code for Maximing the browser window driver.Manage().Window.Maximize();