コード例 #1
0
        public void Test4()
        {
            var complicatedPage = new ComplicatedPage(Driver);

            complicatedPage.GoTo();
            Assert.IsTrue(complicatedPage.IsAt(),
                          "The complicated page did not open successfully");

            complicatedPage.Search("selenium");
            Assert.That(complicatedPage.IsAt(), Is.False);
        }
コード例 #2
0
        public void Test5()
        {
            var complicatedPage = new ComplicatedPage(Driver);

            complicatedPage.GoTo();
            Assert.IsTrue(complicatedPage.IsAt(),
                          "The complicated page did not open successfully");

            complicatedPage.OpenToggle();
            Assert.That(complicatedPage.IsToggleOpen(), Is.True);
        }
コード例 #3
0
        public void Test3()
        {
            var complicatedPage = new ComplicatedPage(Driver);

            complicatedPage.GoTo();
            Assert.IsTrue(complicatedPage.IsAt(),
                          "The complicated page did not open successfully");

            complicatedPage.ClickFirstTwitterButton();
            Assert.That(complicatedPage.IsAt(), Is.False);
        }