Package io.fluentlenium.core.components
Interface ComponentsAccessor
- All Known Implementing Classes:
ComponentsManager
public interface ComponentsAccessor
Accessor interface to retrieve a component from it's selenium element.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addComponentsListener
(ComponentsListener listener) Add a component listener to be notified when a component is registered or unregistered.getComponents
(org.openqa.selenium.WebElement element) Get the related components from the given element.boolean
removeComponentsListener
(ComponentsListener listener) Remove a component listener.
-
Method Details
-
getComponents
Get the related components from the given element.- Parameters:
element
- selenium element- Returns:
- components wrapping the given selenium element
-
addComponentsListener
Add a component listener to be notified when a component is registered or unregistered.- Parameters:
listener
- components listener- Returns:
- true if listener is added
-
removeComponentsListener
Remove a component listener.- Parameters:
listener
- components listener to remove- Returns:
- true if listener is removed
-