Exemplo n.º 1
0
        public void DocumentNumberTest()
        {
            using (IWebDriver driver = new SelectDriver().Driver)
            {
                // arrange
                var documentNumberSearchPage = new DocumentNumberSearchPage(driver);
                documentNumberSearchPage.NavigateTo();

                // act

                // Code to submict a document number query
                documentNumberSearchPage.EnterDocumentNumber("2017000017");
                documentNumberSearchPage.PreformSearch();

                // assert
                Assert.AreEqual("Document Number Search - Web/Intranet Document Number equals 2017000017", documentNumberSearchPage.SearchResult.Text);
            }
        }
Exemplo n.º 2
0
        public void DocumentNumberSearchPage()
        {
            using (IWebDriver driver = new SelectDriver().Driver)
            {
                // arrange
                var homePage = new HomePage(driver);
                homePage.NavigateTo();

                // act
                homePage.OfficialRecordsSearchlink.Click();
                var officialRecordsSearchPage = new PageObjectModels.OfficialRecordsSearchPage(driver);
                officialRecordsSearchPage.DocumentNumberSearchLink.Click();

                // assert
                var documentNumberSearchPage = new DocumentNumberSearchPage(driver);
                documentNumberSearchPage.EnsurePageLoaded();
            }
        }