Class HtmlUnitElementFinder.FindByXPath

  • Enclosing class:
    HtmlUnitElementFinder

    public static class HtmlUnitElementFinder.FindByXPath
    extends HtmlUnitElementFinder.HtmlUnitElementLocator
    Locator strategy for finding elements using XPath expressions.

    This class allows locating a single element or multiple elements on a page or within a specific element using an XPath query. If the XPath expression is invalid or cannot be evaluated, an InvalidSelectorException is thrown. If no matching elements are found, a NoSuchElementException is thrown.