/// <summary>
 /// Creates an instance of the web driver
 /// </summary>
 protected WebDriverSingleton()
 {
     Cleanup();
     WebDriverFactory.Init();
     _browser   = WebDriverFactory.GetBrowser();
     _webDriver = WebDriverFactory.GetInstance();
     Array.ForEach(Directory.GetFiles(AutomationConfigurationManager.DownloadFilePath.Replace("file:\\", "")), File.Delete);
     _webDriver.Manage().Cookies.DeleteAllCookies();
     _webDriver.Manage().Window.Maximize();
 }
 protected WebDriverSingleton(string browser)
 {
     WebDriverFactory.Init();
     _webDriver = WebDriverFactory.GetBrowserInstance(browser);
     _webDriver.Manage().Window.Maximize();
 }