public void Maximize() { //Console.WriteLine(driver.Title); // ButtonOp.buttonClick(driver.Title + " - Microsoft Internet Explorer provided by Hewlett-Packard", "Maximize"); ControlOp co = new ControlOp(); //co.MaximizeWindow(co.FindWindowHandle(null, driver.Title + " - Microsoft Internet Explorer provided by Hewlett-Packard")); co.MaximizeWindow(); }