コード例 #1
0
 public void TestClickWaitUntilPost()
 {
     var indexPage = new IndexPage(Driver);
     Driver.Navigate().GoToUrl(IndexPage.Url);
     Assert.That(indexPage.IsPageLoaded());
     Assert.That(indexPage.AjaxyControlLink.ClickWaitUntilPost(Driver));
 }
コード例 #2
0
 public void TestSwitchBrowserWindowNull()
 {
     Driver.Navigate().GoToUrl(IndexPage.Url);
     var index = new IndexPage(Driver);
      
     index.AjaxyControlNewWindowLink.Click();
     Assert.IsNull(Driver.SwitchBrowserWindow(ExpectedConditions.TitleIs("false")));
 }
コード例 #3
0
        public void TestSwitchBrowserWindow()
        {
            Driver.Navigate().GoToUrl(IndexPage.Url);
            var index = new IndexPage(Driver);

            index.AjaxyControlNewWindowLink.Click();
            Driver.SwitchBrowserWindow(ExpectedConditions.TitleIs("AjaxyControl"));

            var ajaxyControl = new AjaxyControlPage(Driver);
            Assert.That(ajaxyControl.IsPageLoaded());
        }
コード例 #4
0
 public void TestClickWaitForPageFalse()
 {
     var indexPage = new IndexPage(Driver);
     Driver.Navigate().GoToUrl(IndexPage.Url);
     Assert.That(indexPage.IsPageLoaded());
     Assert.Throws<PageNotLoadedException>(() => indexPage.AjaxyControlLink.ClickWaitForPage<IndexPage>(Driver));
 }
コード例 #5
0
 public void TestClickWaitForPage()
 {
     var indexPage = new IndexPage(Driver);
     Driver.Navigate().GoToUrl(IndexPage.Url);
     Assert.That(indexPage.IsPageLoaded());
     Assert.DoesNotThrow(() => indexPage.AjaxyControlLink.ClickWaitForPage<AjaxyControlPage>(Driver));
 }
コード例 #6
0
        public void TestClickWaitUnilVisablesFalse(List<By> locators)
        {
            var indexPage = new IndexPage(Driver);
            Driver.Navigate().GoToUrl(IndexPage.Url);

            Assert.AreEqual(false, indexPage.PageALink.ClickWaitUnilVisables(Driver, locators, 2));
            foreach (var locator in locators)
            {
                Assert.AreEqual(false, Driver.ElementExists(locator));
            }
        }
コード例 #7
0
 public void TestClickWaitUnilVisableFalse(By locator)
 {
     var indexPage = new IndexPage(Driver);
     Driver.Navigate().GoToUrl(IndexPage.Url);
     Assert.AreEqual(false, indexPage.PageALink.ClickWaitUnilVisable(Driver, locator, 2));
     Assert.AreEqual(false, Driver.ElementExists(locator));
 }