Methods
Type |
Name and description |
Collection<WebElement> |
allElements()
|
Navigator |
children()
|
Navigator |
children(Map<String, Object> attributes)
|
Navigator |
children(Map<String, Object> attributes = [:], String selector)
|
List<String> |
classes()
|
Navigator |
click()
|
Navigator |
click(Class<? extends Page> pageClass, Wait wait = null)
|
Navigator |
click(Page pageInstance, Wait wait = null)
|
Navigator |
click(List potentialPages, Wait wait = null)
|
Navigator |
closest(Map<String, Object> attributes)
|
Navigator |
closest(Map<String, Object> attributes = [:], String selector)
|
protected Collection<WebElement> |
collectChildren(Closure filter)
|
protected List<WebElement> |
collectElements(Closure closure)
|
protected Collection<WebElement> |
collectFollowingSiblings(Closure filter)
|
protected Collection<WebElement> |
collectParents(Closure filter)
|
protected Collection<WebElement> |
collectPreviousSiblings(Closure filter)
|
protected Collection<WebElement> |
collectRelativeElements(String xpath, Closure filter)
|
protected Collection<WebElement> |
collectSiblings(Closure filter)
|
protected Collection<WebElement> |
collectUntil(Collection<WebElement> elements, Closure matcher)
|
protected Collection<WebElement> |
collectUntil(Collection<WebElement> elements, String selector)
|
protected Collection<WebElement> |
collectUntil(Collection<WebElement> elements, Map<String, Object> attributes)
|
protected Collection<WebElement> |
collectUntil(Collection<WebElement> elements, Map<String, Object> attributes, String selector)
|
String |
css(String propertyName)
|
protected void |
ensureContainsSingleElement(String name, Class<?>... parameterTypes)
|
protected void |
ensureTagIn(List<String> allowedTags, String attribute)
|
boolean |
equals(Object obj)
|
Navigator |
filter(String selector)
|
Navigator |
filter(Map<String, Object> predicates)
|
Navigator |
first()
|
protected WebElement |
firstElementInContext(Closure closure)
|
Navigator |
getAt(int index)
|
Navigator |
getAt(Range range)
|
Navigator |
getAt(EmptyRange range)
|
Navigator |
getAt(Collection indexes)
|
String |
getAttribute(String name)
|
protected boolean |
getBooleanAttribute(WebElement input, String attribute) This works around an inconsistency in some of the WebDriver implementations.
|
WebElement |
getElement(int index)
|
List<WebElement> |
getElements(Range range)
|
List<WebElement> |
getElements(EmptyRange range)
|
List<WebElement> |
getElements(Collection indexes)
|
int |
getHeight()
|
protected def |
getInputValue(WebElement input)
|
protected def |
getInputValues(Collection<WebElement> inputs)
|
protected def |
getValue(WebElement input)
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
boolean |
hasClass(String valueToContain)
|
int |
hashCode()
|
Navigator |
head()
|
boolean |
is(String tag)
|
boolean |
isDisplayed()
|
boolean |
isEmpty()
|
boolean |
isFocused()
|
protected String |
labelFor(WebElement input)
|
Navigator |
last()
|
Navigator |
leftShift(def value)
|
protected boolean |
matches(WebElement element, Map<String, Object> predicates)
|
protected boolean |
matches(String actualValue, String requiredValue)
|
protected boolean |
matches(String actualValue, Pattern requiredValue)
|
protected boolean |
matches(String actualValue, TextMatcher matcher)
|
protected boolean |
matches(Collection<String> actualValue, String requiredValue)
|
protected boolean |
matches(Collection<String> actualValue, Pattern requiredValue)
|
protected boolean |
matches(Collection<String> actualValue, TextMatcher matcher)
|
def |
methodMissing(String name, def arguments)
|
protected Navigator |
navigatorFor(Collection<WebElement> contextElements)
|
Navigator |
next()
|
Navigator |
next(Map<String, Object> attributes)
|
Navigator |
next(Map<String, Object> attributes = [:], String selector)
|
Navigator |
nextAll()
|
Navigator |
nextAll(Map<String, Object> attributes)
|
Navigator |
nextAll(Map<String, Object> attributes = [:], String selector)
|
Navigator |
nextUntil(Map<String, Object> attributes)
|
Navigator |
nextUntil(Map<String, Object> attributes = [:], String selector)
|
Navigator |
not(String selector)
|
Navigator |
not(Map<String, Object> predicates, String selector)
|
Navigator |
not(Map<String, Object> predicates)
|
Navigator |
parent()
|
Navigator |
parent(Map<String, Object> attributes)
|
Navigator |
parent(Map<String, Object> attributes = [:], String selector)
|
Navigator |
parents()
|
Navigator |
parents(Map<String, Object> attributes)
|
Navigator |
parents(Map<String, Object> attributes = [:], String selector)
|
Navigator |
parentsUntil(Map<String, Object> attributes)
|
Navigator |
parentsUntil(Map<String, Object> attributes = [:], String selector)
|
Navigator |
prevAll()
|
Navigator |
prevAll(Map<String, Object> attributes)
|
Navigator |
prevAll(Map<String, Object> attributes = [:], String selector)
|
Navigator |
prevUntil(Map<String, Object> attributes)
|
Navigator |
prevUntil(Map<String, Object> attributes = [:], String selector)
|
Navigator |
previous()
|
Navigator |
previous(Map<String, Object> attributes)
|
Navigator |
previous(Map<String, Object> attributes = [:], String selector)
|
def |
propertyMissing(String name)
|
def |
propertyMissing(String name, def value)
|
Navigator |
remove(int index)
|
protected boolean |
select(WebElement input)
|
protected boolean |
setCheckboxValue(WebElement input, def value)
|
protected boolean |
setInputValue(WebElement input, String tagName, def value, boolean suppressStaleElementException)
|
protected void |
setInputValues(Collection<WebElement> inputs, def value)
|
protected def |
setSelectValue(WebElement element, def value)
|
Navigator |
siblings()
|
Navigator |
siblings(Map<String, Object> attributes)
|
Navigator |
siblings(Map<String, Object> attributes = [:], String selector)
|
WebElement |
singleElement()
|
int |
size()
|
String |
tag()
|
Navigator |
tail()
|
String |
text()
|
String |
toString()
|
Navigator |
unique()
|
protected boolean |
unselect(WebElement input)
|
def |
value()
|
Navigator |
value(def value)
|
Navigator |
verifyNotEmpty()
|