MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getTitleText

Method getTitleText

src/main/java/org/htmlunit/html/HtmlPage.java:1157–1163  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Calls 2

getTitleElementMethod · 0.95
asNormalizedTextMethod · 0.45