org.jboss.arquillian.ajocado.locator
Class JQueryLocator
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.AbstractElementLocator<JQueryLocator>
org.jboss.arquillian.ajocado.locator.JQueryLocator
- All Implemented Interfaces:
- CompoundableLocator<JQueryLocator>, ElementLocator<JQueryLocator>, ExtendedLocator<JQueryLocator>, IterableLocator<JQueryLocator>, Locator<JQueryLocator>
public class JQueryLocator
- extends AbstractElementLocator<JQueryLocator>
- implements ExtendedLocator<JQueryLocator>
Locates the element using JQuery Selector syntax.
This syntax is extended in AjaxSelenium by new filters similar to :contains(text)
- :textStartsWith(textPattern) - trimmed element text are matched to start with given textPattern
- :textEndsWith(textPattern) - trimmed element text are matched to end with given textPattern
- :textEquals(textPattern) - trimmed element text are compared to exact match with given textPattern
- Version:
- $Revision$
- Author:
- Lukas Fryc
JQueryLocator
public JQueryLocator(String jquerySelector)
- Instantiates a new jQuery locator.
- Parameters:
jquerySelector - the jquery selector
getLocationStrategy
public ElementLocationStrategy getLocationStrategy()
- Specified by:
getLocationStrategy in interface ElementLocator<JQueryLocator>- Specified by:
getLocationStrategy in interface Locator<JQueryLocator>
getNthChildElement
public JQueryLocator getNthChildElement(int index)
- Specified by:
getNthChildElement in interface IterableLocator<JQueryLocator>
getNthOccurence
public JQueryLocator getNthOccurence(int index)
- Specified by:
getNthOccurence in interface IterableLocator<JQueryLocator>
getAllChildren
public Iterable<JQueryLocator> getAllChildren()
- Specified by:
getAllChildren in interface IterableLocator<JQueryLocator>
getAllOccurrences
public Iterable<JQueryLocator> getAllOccurrences()
- Specified by:
getAllOccurrences in interface IterableLocator<JQueryLocator>
getChildren
public Iterable<JQueryLocator> getChildren(JQueryLocator elementLocator)
- Specified by:
getChildren in interface IterableLocator<JQueryLocator>
getDescendants
public Iterable<JQueryLocator> getDescendants(JQueryLocator elementLocator)
- Specified by:
getDescendants in interface IterableLocator<JQueryLocator>
getChild
public JQueryLocator getChild(JQueryLocator elementLocator)
- Description copied from interface:
CompoundableLocator
- Gets a child of this locator by composing this locator with given elementLocator.
- Specified by:
getChild in interface CompoundableLocator<JQueryLocator>
- Parameters:
elementLocator - are added to this locator to compose new compount locator
- Returns:
- the composed locator for this locator with added elementLocator
getDescendant
public JQueryLocator getDescendant(JQueryLocator elementLocator)
- Description copied from interface:
CompoundableLocator
- Gets a descendant of this locator by composing this locator with given elementLocator.
- Specified by:
getDescendant in interface CompoundableLocator<JQueryLocator>
- Parameters:
elementLocator - are added to this locator to compose new compound locator
- Returns:
- the composed locator for this locator with added elementLocator
format
public JQueryLocator format(Object... args)
- Specified by:
format in interface ElementLocator<JQueryLocator>- Specified by:
format in interface ExtendedLocator<JQueryLocator>- Specified by:
format in interface Locator<JQueryLocator>- Overrides:
format in class AbstractElementLocator<JQueryLocator>
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.