class SearchContextBasedBasicLocator extends Object implements BasicLocator
Modifiers | Name | Description |
---|---|---|
static List<String> |
NON_SELECTOR_TRANSLATABLE_ATTRIBUTES |
Constructor and description |
---|
SearchContextBasedBasicLocator(SearchContext searchContext, NavigatorFactory navigatorFactory) |
SearchContextBasedBasicLocator(Iterable<? extends SearchContext> searchContexts, NavigatorFactory navigatorFactory) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
dynamic(Map<String, Object> attributes) |
|
protected Supplier<Collection<WebElement>> |
elementsSupplier(By bySelector, Map<String, Object> attributes) |
|
protected Supplier<Collection<WebElement>> |
elementsSupplier(By bySelector, Map<String, Object> attributes, int index) |
|
protected Supplier<Collection<WebElement>> |
elementsSupplier(By bySelector, Map<String, Object> attributes, Range<Integer> range) |
|
Navigator |
find(By bySelector) |
|
Navigator |
find(By bySelector, int index) |
|
Navigator |
find(Map<String, Object> attributes, int index) |
|
Navigator |
find(Map<String, Object> attributes, Range<Integer> range) |
|
Navigator |
find(Map<String, Object> attributes, By bySelector, int index) |
|
Navigator |
find(Map<String, Object> attributes, By bySelector, Range<Integer> range) |
|
Navigator |
find(Map<String, Object> attributes, By bySelector) |
|
Navigator |
find(Map<String, Object> attributes, String selector) |
|
Navigator |
find(Map<String, Object> attributes, String selector, int index) |
|
Navigator |
find(Map<String, Object> attributes, String selector, Range<Integer> range) |
|
protected Navigator |
find(Map<String, Object> attributes, String selector, Closure<Navigator> navigatorFromBy) |
|
protected Navigator |
find(boolean dynamic, By bySelector, Map<String, Object> attributes) |
|
protected Navigator |
find(boolean dynamic, By bySelector, Map<String, Object> attributes, int index) |
|
protected Navigator |
find(boolean dynamic, By bySelector, Map<String, Object> attributes, Range<Integer> range) |
|
protected Navigator |
findUsingByIfPossible(Map<String, Object> attributes, String selector, Closure<Navigator> navigatorFromBy) |
|
protected boolean |
hasStringValueForKey(Map<String, Object> attributes, String key) |
|
protected Navigator |
navigatorFor(Iterable<WebElement> contextElements) |
|
protected String |
optimizeSelector(String selector, Map<String, Object> attributes) Optimizes the selector by translating attributes map into a css attribute selector if possible. |
|
protected Iterable<WebElement> |
toDynamicIterable(Supplier<Collection<WebElement>> contextElementsSupplier) |
|
protected Navigator |
toNavigator(boolean dynamic, Supplier<Collection<WebElement>> contextElementsSupplier) |
Optimizes the selector by translating attributes map into a css attribute selector if possible. Note this method has a side-effect in that it _removes_ those keys from the predicates map.
Groovy API Documentation for Geb 7.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org