public void SearchForAGivenArticleName() { PlasticAndReconstructiveSurgeryPage surgeryPage = new PlasticAndReconstructiveSurgeryPage(driver); SearchActions.SearchForWord(surgeryPage.SearchBox, surgeryPage.SearchButton, articleName); Assert.IsTrue(surgeryPage.Article(articleName).Displayed); }
public void VerifyIfSearchCorrect() { PlasticAndReconstructiveSurgeryPage surgeryPage = new PlasticAndReconstructiveSurgeryPage(driver); SearchActions.SearchForWord(surgeryPage.SearchBox, surgeryPage.SearchButton, constArticleName); SearchActions.SaveSearch(surgeryPage.SaveSearchButton, surgeryPage.SearchNametextBox, surgeryPage.SaveSearchButtonForm, constSearchName); FavouritesPage favouritesPage = new FavouritesPage(driver); Navigation.Navigate(driver, favouritesPageUrl); favouritesPage.ElementInFavourites(searchFolder).Click(); favouritesPage.ElementInFavourites(constSearchName).Click(); Assert.IsTrue(surgeryPage.Article(constArticleName).Displayed); }