Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.locator.element
Interface IterableLocator<T extends IterableLocator<T>>

Type Parameters:
T - type what we want to iterate over - this type will be returned by method provided by this interface
All Superinterfaces:
ElementLocator<T>, Iterable<T>, Locator<T>, SeleniumRepresentable
All Known Subinterfaces:
ExtendedLocator<T>
All Known Implementing Classes:
AbstractIterableLocator

public interface IterableLocator<T extends IterableLocator<T>>
extends ElementLocator<T>, Iterable<T>

Locator which can iterate over it's descendant.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 T get(int index)
          Gets the index-th occurrence of this locator
 Iterator<T> iterator()
          Returns the iterator through the occurrences of this locator
 int size()
          Returns the count of occurrences of this locator
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.ElementLocator
format, getAttribute, getLocationStrategy
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Method Detail

get

T get(int index)
Gets the index-th occurrence of this locator

Parameters:
index - the index of occurrence of this locator
Returns:
the index-th occurrence of this locator

iterator

Iterator<T> iterator()
Returns the iterator through the occurrences of this locator

Specified by:
iterator in interface Iterable<T extends IterableLocator<T>>
Returns:
the iterator through the occurrences of this locator

size

int size()
Returns the count of occurrences of this locator

Returns:
the count of occurrences of this locator

Graphene Selenium: API 2.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.