public static void Init(string sURL) { switch (sBrowser) { case "Firefox": driver = new FirefoxDriver(); break; case "Chrome": ChromeOptions option = new ChromeOptions(); option.AddArguments("disable-infobars"); driver = new ChromeDriver(option); break; } ExReports.addReport(); driver.Manage().Window.Maximize(); goToURL(sURL); }