Ejemplo n.º 1
0
        public void CheckResultCountForNonExistingStaff() //For invalid staff
        {
            AddressBookSearchPage searchBox = QuickSearch.QuickSearchNavigation();

            searchBox.ClearText();
            searchBox.textSearch.SendKeys(InvalidtextForSearch);
            int resultCount = searchBox.CheckForStaffAvailability(InvalidtextForSearch);

            Assert.That(resultCount == 0);
            if (true)
            {
                WebContext.Screenshot();
            }
        }
Ejemplo n.º 2
0
        public void IdentifySectionHeaderForNoResultsFound() //For invalid staff
        {
            AddressBookSearchPage searchBox = QuickSearch.QuickSearchNavigation();

            searchBox.ClearText();
            searchBox.textSearch.SendKeys(InvalidtextForSearch);
            searchBox.waitForPupilResultstoAppear();
            int    resultCount        = searchBox.CheckForStaffAvailability(InvalidtextForSearch);
            String NoElementtileTitle = SeleniumHelper.Get("result_tile_scroll").Text;

            Assert.True(NoElementtileTitle == AddressBookConstants.TitleForNoResultsfound, "No results found text didn't appear"); //Assertion for title if records are not found
            if (true)
            {
                WebContext.Screenshot();
            }
        }