Interface WebElementRetainer
-
- All Known Subinterfaces:
Component<SELF>,GuiElementCore,InteractiveUiElement,TestableUiElement,UiElement,UiElementActions,UiElementBase,WebElementActions
- All Known Implementing Classes:
AbstractComponent,AbstractGuiElementCore,AbstractGuiElementCoreDecorator,AbstractWebDriverCore,DelayActionsGuiElementFacade,EmptyUiElement,GuiElement,GuiElementCoreSequenceDecorator,UiElementLogger
public interface WebElementRetainerInterface for classes that retain aWebElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfindWebElement(java.util.function.Consumer<org.openqa.selenium.WebElement> consumer)Supplies the first found filteredWebElementto a consumer.
-
-
-
Method Detail
-
findWebElement
void findWebElement(java.util.function.Consumer<org.openqa.selenium.WebElement> consumer)
Supplies the first found filteredWebElementto a consumer. This makes sure that the element is present it it's current scope and not stale- Throws:
ElementNotFoundException- If the expected count of elements hasn't been found
-
-