code: public boolean verifyText(String stringId) {
      String text = desktopUtils.getString(stringId, true /* skipAmpersand */);
  
      return getText().equals(text);
    }
docs: Checks if widget text equals the text specified by the given string id
  
  @return true if text specified by stringId equals widget text