Ejemplo n.º 1
0
        public void MultipleWindowsTest()
        {
            const string PageTitle = "New Window";

            InternetPage internetPage = new InternetPage(this.DriverContext);

            internetPage.OpenHomePage();
            internetPage.GoToMultipleWindowsPage();
            MultipleWindowsPage multipleWindowsPage = new MultipleWindowsPage(this.DriverContext);

            multipleWindowsPage.OpenNewWindowPage();
            NewWindowPage newWindowPage = new NewWindowPage(this.DriverContext);

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