コード例 #1
0
  /** @return */
  public boolean verifySearchResultTitleMatchesDetailedViewTitle() {

    if (BaseTestCaseUtil.match(
        selenium.getText(DetailedSearchResultUiLocator.getTitle()),
        searchResult.getTitle(),
        true)) {
      return true;
    }

    return false;
  }
コード例 #2
0
 /**
  * @param searchTerm
  * @return
  */
 public boolean verifyTitleContainsSearchTermInDetailedView(String searchTerm) {
   return selenium.getText(DetailedSearchResultUiLocator.getTitle()).indexOf(searchTerm) >= 0;
 }