public void TestMethod1()
        {
            const string PageTitle = "New Window";

            var newWindowPage = new InternetPage(this.DriverContext)
                .OpenHomePage()
                .GoToMultipleWindowsPage()
                .OpenNewWindowPage();

            Assert.True(newWindowPage.IsPageTile(PageTitle));
            Assert.True(newWindowPage.IsNewWindowH3TextVisible(PageTitle));
        }
Beispiel #2
0
        public void TestMethod1()
        {
            const string PageTitle = "New Window";

            var newWindowPage = new InternetPage(this.DriverContext)
                                .OpenHomePage()
                                .GoToMultipleWindowsPage()
                                .OpenNewWindowPage();

            Assert.True(newWindowPage.IsPageTile(PageTitle));
            Assert.True(newWindowPage.IsNewWindowH3TextVisible(PageTitle));
        }
        public void MultipleWindowsTest()
        {
            const string PageTitle = "New Window";

            var newWindowPage = new InternetPage(this.DriverContext)
                                .OpenHomePage()
                                .GoToMultipleWindowsPage()
                                .OpenNewWindowPage();

            Assert.True(newWindowPage.IsPageTile(PageTitle), "wrong page title, should be {0}", PageTitle);
            Assert.True(newWindowPage.IsNewWindowH3TextVisible(PageTitle), "text is not equal to {0}", PageTitle);
        }