示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
        public void Go_ToNextWindow()
        {
            var page1 = Go.To <GoTo1Page>();

            page1.
            GoTo2Blank();

            Go.ToNextWindow <GoTo2Page>().
            CloseWindow();

            AssertNoTemporarilyPreservedPageObjects();

            Go.To <GoTo1Page>(navigate: false);
        }
示例#4
0
        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);
        }