# Uses of Class
org.htmlunit.html.HtmlAnchor

Packages that use HtmlAnchor
Package
Description
com.xceptance.xlt.api.util
Provides various utility classes to make writing test cases easier.
org.htmlunit.html
Classes specific to HTML pages, particularly the `HtmlPage` which represents an HTML document and provides access to its content.

- ## Uses of HtmlAnchor in com.xceptance.xlt.api.util

  Methods in com.xceptance.xlt.api.util that return HtmlAnchor
  Modifier and Type
  Method
  Description
  `static HtmlAnchor`
  HtmlPageUtils.`getAnchorWithText(HtmlPage page, String anchorText)`
  Returns the HTML anchor element with the passed anchor text.

- ## Uses of HtmlAnchor in org.htmlunit.html

  Methods in org.htmlunit.html that return HtmlAnchor
  Modifier and Type
  Method
  Description
  `HtmlAnchor`
  HtmlPage.`getAnchorByHref(String href)`
  Returns the `HtmlAnchor` with the specified href.
  `HtmlAnchor`
  HtmlPage.`getAnchorByName(String name)`
  Returns the `HtmlAnchor` with the specified name.
  `HtmlAnchor`
  HtmlPage.`getAnchorByText(String text)`
  Returns the first anchor with the specified text.
  Methods in org.htmlunit.html that return types with arguments of type HtmlAnchor
  Modifier and Type
  Method
  Description
  `List<HtmlAnchor>`
  HtmlPage.`getAnchors()`
  Returns a list of all anchors contained in this page.