public static IWebDriver CreateChromeDriver() { Console.WriteLine("\tCreate Chrome Driver"); if (null == RuntimeData.Get("driver")) { Console.WriteLine("\tDriver NOT created yet. Creating a new instance of the Chrome Driver."); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.LeaveBrowserRunning = true; chromeOptions.AddArgument("test-type"); chromeOptions.AddArgument("--start-maximized"); DesiredCapabilities capabilities = DesiredCapabilities.Chrome(); capabilities.SetCapability(ChromeOptions.Capability, chromeOptions); _chromeDriver = new ChromeDriver(Directory.GetCurrentDirectory() + @"\\libraries", chromeOptions); _chromeDriver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 30)); RuntimeData.Save("driver", _chromeDriver); _chromeDriver.Navigate().GoToUrl("http://www.essenceoftesting.blogspot.com"); } return(RuntimeData.Get("driver") as ChromeDriver); }