Package org.jboss.elemento
Interface Finder<E extends Element>
- All Superinterfaces:
IsElement<E>
- All Known Implementing Classes:
HTMLContainerBuilder
,HTMLElementBuilder
,InputElementBuilder
Provides methods and default implementations for finding elements.
By selector = By.element("a").and(By.attribute("href", STARTS_WITH, "https://"));
for (HTMLElement element : body().findAll(selector)) {
a(element).css("external");
}
-
Method Summary
Modifier and TypeMethodDescriptiondefault <F extends HTMLElement>
FFinds the closest HTML element for the given selector.default <F extends HTMLElement>
FFinds a single HTML element for the given selector.default Iterable
<HTMLElement> Finds all HTML elements for the given selector.
-
Method Details
-
findAll
Finds all HTML elements for the given selector. -
find
Finds a single HTML element for the given selector. -
closest
Finds the closest HTML element for the given selector.
-