Class HtmlUnitElementFinder.FindByTagName

java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitElementFinder.HtmlUnitElementLocator
org.openqa.selenium.htmlunit.HtmlUnitElementFinder.FindByTagName
Enclosing class:
HtmlUnitElementFinder

public static class HtmlUnitElementFinder.FindByTagName extends HtmlUnitElementFinder.HtmlUnitElementLocator
Locator strategy for finding elements by their tag name.

This class provides methods to locate a single element or multiple elements on a page or within a specific element by tag name. If no matching elements are found, a NoSuchElementException is thrown. If the tag name is empty, an InvalidSelectorException is thrown.