Example #1
0
        public void ClickSimpleFormDemo()
        {
            var wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(2));

            wait.Until(WebDriverHelper.ElementIsDisplayed(paneBasic));
            WebDriverHelper.StaleElementHandleClick(_driver.FindElement(simpleFormDemoLink));
        }
        public void IsOnSingleInputPage()
        {
            Assert.AreEqual(url, _driver.Url);
            var wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(5));

            wait.Until(WebDriverHelper.ElementIsDisplayed(headerFirstExample));
            Assert.IsTrue(_driver.FindElement(headerFirstExample).Text.Contains("first example"));
        }
        public void IsOnCheckboxPage()
        {
            var wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(10));

            Assert.IsTrue(wait.Until(WebDriverHelper.ElementIsDisplayed(bySingleCheckboxDemoTitle)));
            var expectedTitle = "Single Checkbox Demo";

            Assert.AreEqual(expectedTitle, singleCheckoutDemoTitle.Text);
        }
Example #4
0
        public void IsOnDemoHomePage()
        {
            var wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(10));

            Assert.IsTrue(wait.Until(WebDriverHelper.ElementIsDisplayed(btnStartPractising)));
        }