/** * @param searchTerm * @return */ public boolean verifyFulltextContainsSearchTermInDetailedView(String searchTerm) { if (selenium.isElementPresent(DetailedSearchResultUiLocator.getFullText())) { return BaseTestCaseUtil.matchIgnoreCase( selenium.getText(DetailedSearchResultUiLocator.getFullText()), searchTerm, true); } return true; }
/** * @param searchTerm * @return */ public boolean verifySearchTermIsHighlightedInFullTextInDetailedView(String searchTerm) { if (selenium.isElementPresent(DetailedSearchResultUiLocator.getFullText()) && verifyFulltextContainsSearchTermInDetailedView(searchTerm)) { return selenium .getText(DetailedSearchResultUiLocator.getHitHighlight()) .equalsIgnoreCase(searchTerm); } return true; }