public final class LocatorFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static CssLocator css(String cssSelector)
cssSelector - the CSS selectorpublic static DomLocator dom(JavaScript javascriptExpression)
javascriptExpression - the JavaScript expressionDomLocatorpublic static IdLocator id(String id)
id - the @id attribute's valuepublic static LinkLocator link(String linkText)
linkText - the link (anchor) element's textpublic static JQueryLocator jq(String jquerySelector)
jquerySelector - the jquery selectorJQueryLocatorpublic static NameLocator name(String name)
name - the @name attribute's valuepublic static XPathLocator xp(String xpath)
xpath - the xpath expressionXPathLocatorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.