|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.locator.SeleniumLocators
public final class SeleniumLocators
Factory of Selenium locators.
Field Summary | |
---|---|
static LocatorType |
NAME
|
Method Summary | |
---|---|
static SeleniumLocator |
create(LocatorData data,
SeleniumContext ctx)
Create locator for given locator data and context. |
static SeleniumLocator |
create(LocatorType type,
String value,
SeleniumContext ctx)
Create Selenium locator for given locator type, value and Selenium context. |
static SeleniumLocator |
create(String fullLocator,
SeleniumContext context)
Reverse-engineer Selenium-style fullLocator (the 'type=value' string) and create a SeleniumLocator
object representing it. |
static SeleniumLocator |
css(String cssSelector,
SeleniumContext ctx)
Create new CSS Selenium locator. |
static SeleniumLocator |
forClass(String cssClass,
SeleniumContext ctx)
Create new CSS class Selenium locator. |
static SeleniumLocator |
id(String id,
SeleniumContext ctx)
Create new ID Selenium locator. |
static SeleniumLocator |
jQuery(String jQuerySelector,
SeleniumContext ctx)
Create new jQuery Selenium locator. |
static SeleniumLocator |
name(String name,
SeleniumContext ctx)
Create new name Selenium locator. |
static SeleniumLocator |
xpath(String xpath,
SeleniumContext ctx)
Create new XPath Selenium locator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static LocatorType NAME
Method Detail |
---|
public static SeleniumLocator id(String id, SeleniumContext ctx)
id
- id of the located elementctx
- Selenium context
public static SeleniumLocator forClass(String cssClass, SeleniumContext ctx)
cssClass
- class of the located elementctx
- Selenium context
public static SeleniumLocator css(String cssSelector, SeleniumContext ctx)
cssSelector
- CSS selector locating the elementctx
- Selenium context
public static SeleniumLocator jQuery(String jQuerySelector, SeleniumContext ctx)
jQuerySelector
- jQuery selector locating the elementctx
- Selenium context
public static SeleniumLocator xpath(String xpath, SeleniumContext ctx)
xpath
- xpath query locating the elementctx
- Selenium context
public static SeleniumLocator name(String name, SeleniumContext ctx)
name
- HTML name of the located elementctx
- Selenium context
public static SeleniumLocator create(LocatorData data, SeleniumContext ctx)
data
- locator datactx
- current Selenium context
public static SeleniumLocator create(String fullLocator, SeleniumContext context)
SeleniumLocator
object representing it.
fullLocator
- full Selenium locatorcontext
- Selenium context
SeleniumLocator
matching the inoutStringLocators
public static SeleniumLocator create(LocatorType type, String value, SeleniumContext ctx)
type
- locator typevalue
- locator valuectx
- context
SeleniumLocator
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |