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

Method getAnchors

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

Returns a list of all anchors contained in this page. @return the list of HtmlAnchor in this page

()

Source from the content-addressed store, hash-verified

671 * @return the list of {@link HtmlAnchor} in this page
672 */
673 public List<HtmlAnchor> getAnchors() {
674 return getDocumentElement().getElementsByTagNameImpl("a");
675 }
676
677 /**
678 * Returns the first anchor with the specified text.

Callers 15

openerInFramesetMethod · 0.95
usageMethod · 0.95
jsUrlEncodedMethod · 0.95
cssUrlEncodedMethod · 0.95
assertVersionMethod · 0.95
failureByClickLinkMethod · 0.95
scopeInInactivePageMethod · 0.95
compiledScriptCachedMethod · 0.95
readWriteAnchorTargetMethod · 0.95
readWriteAnchorSearchMethod · 0.95
readWriteAnchorHashMethod · 0.95

Calls 2

getDocumentElementMethod · 0.95

Tested by 15

openerInFramesetMethod · 0.76
usageMethod · 0.76
jsUrlEncodedMethod · 0.76
cssUrlEncodedMethod · 0.76
assertVersionMethod · 0.76
failureByClickLinkMethod · 0.76
scopeInInactivePageMethod · 0.76
compiledScriptCachedMethod · 0.76
readWriteAnchorTargetMethod · 0.76
readWriteAnchorSearchMethod · 0.76
readWriteAnchorHashMethod · 0.76