org.jboss.arquillian.ajocado.locator
Class JQueryLocator
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator<JQueryLocator>
org.jboss.arquillian.ajocado.locator.JQueryLocator
- All Implemented Interfaces:
- Iterable<JQueryLocator>, CompoundableLocator<JQueryLocator>, ElementLocator<JQueryLocator>, ExtendedLocator<JQueryLocator>, FilterableLocator<JQueryLocator>, IterableLocator<JQueryLocator>, Locator<JQueryLocator>, SeleniumRepresentable
public class JQueryLocator
- extends AbstractIterableLocator<JQueryLocator>
- implements ExtendedLocator<JQueryLocator>, FilterableLocator<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>
get
public JQueryLocator get(int index)
- Specified by:
get
in interface IterableLocator<JQueryLocator>
getChild
public JQueryLocator getChild(JQueryLocator elementLocator)
- Specified by:
getChild
in interface CompoundableLocator<JQueryLocator>
getDescendant
public JQueryLocator getDescendant(JQueryLocator elementLocator)
- Specified by:
getDescendant
in interface CompoundableLocator<JQueryLocator>
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>
filter
public JQueryLocator filter(String extension)
- Specified by:
filter
in interface FilterableLocator<JQueryLocator>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.