/// <summary> /// Approves the cert for IE if that's the browser that's being used /// </summary> private void ApproveCertificateForInternetExplorer() { if (BaseConfiguration.TestBrowser.Equals(BrowserType.InternetExplorer) && NgDriver.Title.Contains("Certificate")) { By by = By.Id("overridelink"); var element = new NgWebElement(NgDriver, NgDriver.FindElement(by), by); element.JavaScriptClick(); } }