Package io.fluentlenium.core.search
Class Search
java.lang.Object
io.fluentlenium.core.search.Search
- All Implemented Interfaces:
SearchControl<FluentWebElement>
Perform element searchs in a given context.
-
Constructor Summary
ConstructorDescriptionSearch
(org.openqa.selenium.SearchContext context, Object container, ComponentInstantiator instantiator, FluentInjectControl injectControl) Creates a new search object. -
Method Summary
Modifier and TypeMethodDescriptionel
(org.openqa.selenium.WebElement rawElement) Wrap existing raw selenium element into an element.find
(String selector, SearchFilter... filters) Central methods to find elements on the page.Wrap raw selenium elements into a list of elements.find
(SearchFilter... filters) Central methods to find elements on the page with filters.find
(org.openqa.selenium.By locator, SearchFilter... filters) Find list of elements with Selenium locator and filters.
-
Constructor Details
-
Search
public Search(org.openqa.selenium.SearchContext context, Object container, ComponentInstantiator instantiator, FluentInjectControl injectControl) Creates a new search object.- Parameters:
context
- search contextcontainer
- containerinstantiator
- component instantiatorinjectControl
- inject control
-
-
Method Details
-
find
Central methods to find elements on the page. Can provide some filters. Able to use css1, css2, css3, see WebDriver restrictions- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Parameters:
selector
- elements name to findfilters
- filters set- Returns:
- fluent list of fluent web elements
-
find
Central methods to find elements on the page with filters.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Parameters:
filters
- filters set- Returns:
- fluent list of fluent web elements
-
find
Description copied from interface:SearchControl
Find list of elements with Selenium locator and filters.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Parameters:
locator
- elements locatorfilters
- filters set- Returns:
- list of elements
-
find
Description copied from interface:SearchControl
Wrap raw selenium elements into a list of elements.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Parameters:
rawElements
- raw selenium elements- Returns:
- list of element
-
el
Description copied from interface:SearchControl
Wrap existing raw selenium element into an element.- Specified by:
el
in interfaceSearchControl<FluentWebElement>
- Parameters:
rawElement
- raw selenium element- Returns:
- element
-