public void InvalidLoginAttempt() { Go.To <StartPage>(). Login.Click(); Go.ToNextWindow <LoginPage>(). Email.Set("*****@*****.**"). Password.Set("akfgskfgsdgfsjddfg"). Login.Click(). Failure.Should.Contain("Please complete the captcha and try again"). CloseWindow(); Go.To <StartPage>(navigate: false); }
public void Go_ToNextWindow_Temporarily() { var page1 = Go.To <GoTo1Page>(). GoTo2Blank(); Go.ToNextWindow <GoTo2Page>(temporarily: true). CloseWindow(); AssertTemporarilyPreservedPageObjects(page1); Go.To <GoTo1Page>(navigate: false); AssertCurrentPageObject(page1); }
public void Go_ToNextWindow() { var page1 = Go.To <GoTo1Page>(); page1. GoTo2Blank(); Go.ToNextWindow <GoTo2Page>(). CloseWindow(); AssertNoTemporarilyPreservedPageObjects(); Go.To <GoTo1Page>(navigate: false); }
public void Go_ToNextWindow_TemporarilyComplex() { var page1 = Go.To <GoTo1Page>(). GoTo2Blank(); var page2 = Go.ToNextWindow <GoTo2Page>(temporarily: true); page2. GoTo3Temporarily(). CloseWindow(); AssertTemporarilyPreservedPageObjects(page1, page2); var page1Returned = Go.To <GoTo1Page>(navigate: false); Assert.That(page1Returned, Is.EqualTo(page1)); AssertCurrentPageObject(page1); }