/** * @param searchTerm * @return */ public boolean verifySearchTermIsHighlightedInFullTextInDetailedView(String searchTerm) { if (selenium.isElementPresent(DetailedSearchResultUiLocator.getFullText()) && verifyFulltextContainsSearchTermInDetailedView(searchTerm)) { return selenium .getText(DetailedSearchResultUiLocator.getHitHighlight()) .equalsIgnoreCase(searchTerm); } return true; }
/** * @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 authorName * @return */ public boolean verifyAuthorInDetailedView(String authorName) { if (BaseTestCaseUtil.matchIgnoreCase( selenium.getText(DetailedSearchResultUiLocator.getAuthorName()), authorName, true)) { return true; } return false; }
/** @return */ public boolean verifySearchResultPubMatchesDetailedViewPub() { if (BaseTestCaseUtil.match( selenium.getText(DetailedSearchResultUiLocator.getPub()), searchResult.getPub(), true)) { return true; } return false; }
/** @return */ public boolean verifySearchResultDocumentTypeMatchesDetailedViewDocumentType() { if (selenium .getText(DetailedSearchResultUiLocator.getDocumentType()) .indexOf(searchResult.getDocumentType().trim().split("((es)|(s))$")[0]) >= 0) { return true; } return false; }
public boolean verifyPubContainsSearchTermInDetailedView(String searchTerm) { return BaseTestCaseUtil.matchIgnoreCase( selenium.getText(DetailedSearchResultUiLocator.getPub()), searchTerm, true); }
/** * @param searchTerm * @return */ public boolean verifyTitleContainsSearchTermInDetailedView(String searchTerm) { return selenium.getText(DetailedSearchResultUiLocator.getTitle()).indexOf(searchTerm) >= 0; }