public void Dispose() { ngDriver.Quit(); // Suppress finalization. GC.SuppressFinalize(this); }
/// <summary> /// Close the browser /// </summary> public void Dispose() { Log.Info("Disposing Browser"); Thread.Sleep(1000); NgDriver?.Quit(); Driver?.Quit(); }
public void TearDown() { if (webDriver != null) { ngWebDriver.Quit(); } }
public void GivenUserFillesTheFieldsWithForRegistration() { ngDriver = new NgWebDriver(driver); _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); /*ReadOnlyCollection<NgWebElement>*/ var firstName = ngDriver.FindElement(NgBy.Model("FirstName")); //NgWebElement firstName = ngDriver.FindElement(By.TagName("FirstName")); firstName.SendKeys("hello"); //input = wd.findElement(By.tagName("input")); //System.out.println("fieldValue=" + input.getAttribute("value")); _driver.Quit(); //wd.get("http://jsfiddle.net/SAWsA/11/show/"); //NgWebElement input = ngDriver.FindElement(By.Name("name='FirstName'")); //input = wd.findElement(By.tagName("input")); //System.out.println("fieldValue=" + input.getAttribute("value")); ngDriver.Quit(); //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); //var firstName = _driver.FindElement(By.CssSelector("input[ng-model='FirstName']")); firstName.SendKeys("GenRandomString()"); }
public void TearDown() { if (null != ngWebDriver) { ngWebDriver.Close(); ngWebDriver.Quit(); } }
public void ShouldCheckElementByModel() { var chromeDriver = new ChromeDriver(); var ngDriver = new NgWebDriver(chromeDriver); ngDriver.Navigate().GoToUrl("http://todomvc.com/examples/angularjs"); var element = ngDriver.FindElement(NgBy.Model("newTodo")); Assert.IsTrue(element.Displayed); ngDriver.Quit(); }
public void Teardown() { ngDriver.Quit(); }
public void BrowserTearDown() { NgDriver.Quit(); NgDriver.Dispose(); }
public void TestCleanup() { driver.Quit(); }
public static void AssemblyTearDown() { ngDriver.Close(); ngDriver.Quit(); }
public void CloseBrowser() { ngDriver.Quit(); }
public void Final() { driver.Quit(); }
public void QuitDriver() { _ngWebDriver.Quit(); }
public void Close() { driver.Quit(); }
public static void FixtureTestTearDown() { _ngDriver.Quit(); }