public boolean textIsPresent(String courseWareErrorText,String text){
  if (courseWareErrorText.equals(text)) {
    return true;
  }
 else {
    return false;
  }
}

public boolean textIsPresent ( String courseWareErrorText , String text ) { if ( courseWareErrorText . equals ( text ) ) { return true ; } else { return false ; } }
verify that whether the text is present or not
