Exemple #1
0
        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();
        }
Exemple #7
0
 public void Teardown()
 {
     ngDriver.Quit();
 }
 public void BrowserTearDown()
 {
     NgDriver.Quit();
     NgDriver.Dispose();
 }
Exemple #9
0
 public void TestCleanup()
 {
     driver.Quit();
 }
Exemple #10
0
 public static void AssemblyTearDown()
 {
     ngDriver.Close();
     ngDriver.Quit();
 }
Exemple #11
0
 public void CloseBrowser()
 {
     ngDriver.Quit();
 }
Exemple #12
0
 public void Final()
 {
     driver.Quit();
 }
Exemple #13
0
 public void QuitDriver()
 {
     _ngWebDriver.Quit();
 }
Exemple #14
0
 public void Close()
 {
     driver.Quit();
 }
Exemple #15
0
 public static void FixtureTestTearDown()
 {
     _ngDriver.Quit();
 }