|
Ajocado Implementation 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.ajocado.locator.LocatorFactory
public final class LocatorFactory
Utility class simplifying creation of locators of various types providing it's factories.
| Method Summary | |
|---|---|
static CssLocator |
css(String cssSelector)
Gets element locator finding elements using CSS selectors. |
static DomLocator |
dom(JavaScript javascriptExpression)
Find an element by evaluating the specified JavaScript expression. |
static IdLocator |
id(String id)
Locates the element with specified @id attribute. |
static JQueryLocator |
jq(String jquerySelector)
Locates the element using JQuery Selector syntax. |
static LinkLocator |
link(String linkText)
Locates the link (anchor) element which contains text matching the specified pattern. |
static NameLocator |
name(String name)
Locates the first element with the specified @name attribute. |
static XPathLocator |
xp(String xpath)
Locates the element using XPath expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CssLocator css(String cssSelector)
cssSelector - the CSS selector
public static DomLocator dom(JavaScript javascriptExpression)
javascriptExpression - the JavaScript expression
DomLocatorpublic static IdLocator id(String id)
id - the @id attribute's value
public static LinkLocator link(String linkText)
linkText - the link (anchor) element's text
public static JQueryLocator jq(String jquerySelector)
jquerySelector - the jquery selector
JQueryLocatorpublic static NameLocator name(String name)
name - the @name attribute's value
public static XPathLocator xp(String xpath)
xpath - the xpath expression
XPathLocator
|
Ajocado Implementation 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||