Groovy Documentation

geb.navigator
[Groovy] Class AbstractNavigator

java.lang.Object
  geb.navigator.AbstractNavigator
All Implemented Interfaces:
Navigator

abstract class AbstractNavigator

Property Summary
Browser browser

 
Constructor Summary
AbstractNavigator(Browser browser)

 
Method Summary
Navigator add(String selector)

Navigator add(WebElement[] elements)

Navigator add(Collection elements)

boolean asBoolean()

String attr(String name)

Navigator eq(int index)

Navigator filter(Map predicates, String selector)

Navigator find(Map predicates, int index)

Navigator find(Map predicates, Range range)

Navigator find(Map predicates, String selector, int index)

Navigator find(String selector, Range range)

Navigator find(Map predicates, String selector, Range range)

Navigator find(Map predicates, String selector, Integer index)

Navigator find(Map predicates, Integer index)

Navigator find(String selector, int index)

Navigator find(Map predicates)

Navigator find(Map predicates, String selector)

Navigator findAll(Closure predicate)

WebElement firstElement()

protected WebElement getElement(int index)

Gets the element at the given index.

protected List getElements(Range range)

Gets the elements in the given range.

protected List getElements(Collection indexes)

Gets the elements at the given indexes.

int getHeight()

JQueryAdapter getJquery()

int getWidth()

int getX()

int getY()

Navigator has(String selector)

Navigator has(Map predicates)

Navigator has(Map predicates, String selector)

Iterator iterator()

WebElement lastElement()

Navigator plus(Navigator navigator)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

browser

final Browser browser


 
Constructor Detail

AbstractNavigator

AbstractNavigator(Browser browser)


 
Method Detail

add

Navigator add(String selector)


add

Navigator add(WebElement[] elements)


add

Navigator add(Collection elements)


asBoolean

boolean asBoolean()


attr

String attr(String name)


eq

Navigator eq(int index)


filter

@Override
Navigator filter(Map predicates, String selector)


find

@Override
Navigator find(Map predicates, int index)


find

@Override
Navigator find(Map predicates, Range range)


find

@Override
Navigator find(Map predicates, String selector, int index)


find

@Override
Navigator find(String selector, Range range)


find

@Override
Navigator find(Map predicates, String selector, Range range)


find

@Override
Navigator find(Map predicates, String selector, Integer index)


find

@Override
Navigator find(Map predicates, Integer index)


find

@Override
Navigator find(String selector, int index)


find

@Override
Navigator find(Map predicates)


find

@Override
Navigator find(Map predicates, String selector)


findAll

Navigator findAll(Closure predicate)


firstElement

WebElement firstElement()


getElement

protected WebElement getElement(int index)
Gets the element at the given index.
Parameters:
index - index of the element to retrieve - pass a negative value to start from the back
Returns:
the element at the given index, or null if no such element exists


getElements

protected List getElements(Range range)
Gets the elements in the given range.
Parameters:
range - range of the elements to retrieve
Returns:
the elements in the given range, or an empty list if no such elements exist


getElements

protected List getElements(Collection indexes)
Gets the elements at the given indexes.
Parameters:
indexes - indexes of the elements to retrieve
Returns:
the elements at the given indexes, or an empty list if no such elements exist


getHeight

int getHeight()


getJquery

JQueryAdapter getJquery()


getWidth

int getWidth()


getX

int getX()


getY

int getY()


has

Navigator has(String selector)


has

Navigator has(Map predicates)


has

Navigator has(Map predicates, String selector)


iterator

Iterator iterator()


lastElement

WebElement lastElement()


plus

Navigator plus(Navigator navigator)


 

Groovy API Documentation for Geb 0.9.3 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org