Returns the title of this page or an empty string if the title wasn't specified. @return the title of this page or an empty string if the title wasn't specified
()
| 1155 | * @return the title of this page or an empty string if the title wasn't specified |
| 1156 | */ |
| 1157 | public String getTitleText() { |
| 1158 | final HtmlTitle titleElement = getTitleElement(); |
| 1159 | if (titleElement != null) { |
| 1160 | return titleElement.asNormalizedText(); |
| 1161 | } |
| 1162 | return ""; |
| 1163 | } |
| 1164 | |
| 1165 | /** |
| 1166 | * Sets the text for the title of this page. If there is not a title element |