|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.locator.AbstractLocator<T>
org.jboss.test.selenium.locator.AbstractElementLocator<JQueryLocator>
org.jboss.test.selenium.locator.JQueryLocator
public class JQueryLocator
Locates the element using JQuery Selector syntax.
This syntax is extended in AjaxSelenium by new filters similar to :contains(text)
| Constructor Summary | |
|---|---|
JQueryLocator(String jquerySelector)
Instantiates a new jQuery locator. |
|
| Method Summary | |
|---|---|
JQueryLocator |
format(Object... args)
|
Iterable<JQueryLocator> |
getAllChildren()
Gets the all children of element given by this locator |
Iterable<JQueryLocator> |
getAllOccurrences()
Gets the all occurrences of element given by this locator |
JQueryLocator |
getChild(JQueryLocator elementLocator)
Gets a child of this locator by composing this locator with given elementLocator. |
Iterable<JQueryLocator> |
getChildren(JQueryLocator elementLocator)
Gets the children given by locator composed from this locator and given elementLocator. |
JQueryLocator |
getDescendant(JQueryLocator elementLocator)
Gets a descendant of this locator by composing this locator with given elementLocator. |
Iterable<JQueryLocator> |
getDescendants(JQueryLocator elementLocator)
Gets all the descendants for this locator specified by composed locator from this locator and given elementLocator. |
ElementLocationStrategy |
getLocationStrategy()
Returns the location strategy for this element |
JQueryLocator |
getNthChildElement(int index)
Gets the N-th child element of this locator. |
JQueryLocator |
getNthOccurence(int index)
Gets the N-th occurence of descendant for this locator's element |
| Methods inherited from class org.jboss.test.selenium.locator.AbstractElementLocator |
|---|
getAttribute |
| Methods inherited from class org.jboss.test.selenium.locator.AbstractLocator |
|---|
getAsString, getRawLocator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.test.selenium.locator.ElementLocator |
|---|
getAttribute |
| Methods inherited from interface org.jboss.test.selenium.locator.Locator |
|---|
getAsString, getRawLocator |
| Constructor Detail |
|---|
public JQueryLocator(String jquerySelector)
jquerySelector - the jquery selector| Method Detail |
|---|
public ElementLocationStrategy getLocationStrategy()
Locator
getLocationStrategy in interface ElementLocator<JQueryLocator>getLocationStrategy in interface Locator<JQueryLocator>public JQueryLocator getNthChildElement(int index)
IterableLocator
getNthChildElement in interface IterableLocator<JQueryLocator>index - the index of the child subsequent to this locator
public JQueryLocator getNthOccurence(int index)
IterableLocator
getNthOccurence in interface IterableLocator<JQueryLocator>index - the index of the descendant of this locator
public Iterable<JQueryLocator> getAllChildren()
IterableLocator
getAllChildren in interface IterableLocator<JQueryLocator>public Iterable<JQueryLocator> getAllOccurrences()
IterableLocator
getAllOccurrences in interface IterableLocator<JQueryLocator>public Iterable<JQueryLocator> getChildren(JQueryLocator elementLocator)
IterableLocator
getChildren in interface IterableLocator<JQueryLocator>elementLocator - the locator for element for composition with this locator
public Iterable<JQueryLocator> getDescendants(JQueryLocator elementLocator)
IterableLocator
getDescendants in interface IterableLocator<JQueryLocator>elementLocator - the element locator, which should be added to this locator to specify this element's descendants
public JQueryLocator getChild(JQueryLocator elementLocator)
CompoundableLocator
getChild in interface CompoundableLocator<JQueryLocator>elementLocator - are added to this locator to compose new compount locator
public JQueryLocator getDescendant(JQueryLocator elementLocator)
CompoundableLocator
getDescendant in interface CompoundableLocator<JQueryLocator>elementLocator - are added to this locator to compose new compound locator
public JQueryLocator format(Object... args)
format in interface ElementLocator<JQueryLocator>format in interface ExtendedLocator<JQueryLocator>format in interface Locator<JQueryLocator>format in class AbstractElementLocator<JQueryLocator>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||