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