public void VerifyWikipediaResultTitle(string expectedTitle) { try { WikiResultPage wikiResult = new WikiResultPage(_webDriver); AssertionProvider.EqualsHardAssert(wikiResult.GetPageTitle(), expectedTitle, "Wikipedia result page title"); } catch (Exception ex) { AssertionProvider.FailTest(ex.Message); } }
internal void VerifyTextInSearchBar(string expectedTest) { try { GoogleHomePage googleHomePage = new GoogleHomePage(_webDriver); string textInSearchBar = googleHomePage.GetTextInInput(); AssertionProvider.EqualsHardAssert(expectedTest, textInSearchBar, "the text in the search bar is not the expected"); } catch (Exception ex) { AssertionProvider.FailTest(ex.Message); } }