public void TestClickWaitUntilPost() { var indexPage = new IndexPage(Driver); Driver.Navigate().GoToUrl(IndexPage.Url); Assert.That(indexPage.IsPageLoaded()); Assert.That(indexPage.AjaxyControlLink.ClickWaitUntilPost(Driver)); }
public void TestSwitchBrowserWindowNull() { Driver.Navigate().GoToUrl(IndexPage.Url); var index = new IndexPage(Driver); index.AjaxyControlNewWindowLink.Click(); Assert.IsNull(Driver.SwitchBrowserWindow(ExpectedConditions.TitleIs("false"))); }
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 TestClickWaitForPageFalse() { var indexPage = new IndexPage(Driver); Driver.Navigate().GoToUrl(IndexPage.Url); Assert.That(indexPage.IsPageLoaded()); Assert.Throws<PageNotLoadedException>(() => indexPage.AjaxyControlLink.ClickWaitForPage<IndexPage>(Driver)); }
public void TestClickWaitForPage() { var indexPage = new IndexPage(Driver); Driver.Navigate().GoToUrl(IndexPage.Url); Assert.That(indexPage.IsPageLoaded()); Assert.DoesNotThrow(() => indexPage.AjaxyControlLink.ClickWaitForPage<AjaxyControlPage>(Driver)); }
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)); } }
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)); }