public void TestClickWaitUntilPostFlase()
 {
     var ajaxPage = new AjaxyControlPage(Driver);
     Driver.Navigate().GoToUrl(AjaxyControlPage.Url);
     Assert.That(ajaxPage.IsPageLoaded());
     Assert.That(!ajaxPage.GreenRadio.ClickWaitUntilPost(Driver));
 }
        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());
        }
 public void SetupWebDriverExtensionTests()
 {
     Driver.Navigate().GoToUrl(AjaxyControlPage.Url);
     _ajaxyControlPage = new AjaxyControlPage(Driver);
     Assert.AreEqual(true, _ajaxyControlPage.IsPageLoaded());
 }
 public void SetupSearchContextExtentionTests()
 {
     Driver.Navigate().GoToUrl(AjaxyControlPage.Url);
     Page = new AjaxyControlPage(Driver);
     Assert.AreEqual(true, Page.IsPageLoaded());
 }
 public void PageNotLoadedExceptionPageName()
 {
     var ajaxyControlPage = new AjaxyControlPage();
     var pageException = Assert.Throws<PageNotLoadedException>(() => { throw new PageNotLoadedException(ajaxyControlPage); });
     Assert.AreEqual("Page name: TestWebPages.UIFramework.Pages.AjaxyControlPage", pageException.Message);
 }