public class Locator extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
arg
argument for locator type.
|
static String |
CSS |
static String |
DOM |
static Locator[] |
EMPTY_ARRAY
the array of empty locators.
|
Deque<Integer> |
frameIndexList
frame list.
|
static String |
ID |
static String |
IDENTIFIER |
static String |
INDEX |
static String |
LINK |
String |
locator
locator.
|
static String |
NAME |
static String |
OPTION_LOCATOR_SEPARATOR
Deprecated.
|
OptionLocator |
poptloc
option locator.
|
static String |
RELATIVE |
static String |
RELATIVE_PARENT |
static String |
RELATIVE_TOP |
String |
type
locator type.
|
static String |
XPATH |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
boolean |
isRelativeParent() |
boolean |
isRelativeTop() |
boolean |
isTypeIndex() |
boolean |
isTypeRelative() |
String |
toLocatorString()
Deprecated.
|
String |
toString() |
Locator |
withOption(String option)
Add option locator.
|
public static final String IDENTIFIER
public static final String ID
public static final String NAME
public static final String DOM
public static final String XPATH
public static final String LINK
public static final String CSS
public static final String RELATIVE
public static final String INDEX
public static final String RELATIVE_TOP
public static final String RELATIVE_PARENT
@Deprecated public static final String OPTION_LOCATOR_SEPARATOR
public static final Locator[] EMPTY_ARRAY
public final String locator
public final String type
public final String arg
public final OptionLocator poptloc
public Locator(String locator)
locator - locator with option. (separated by OPTION_LOCATOR_SEPARATOR)public Locator withOption(String option)
option - option locator.public boolean isTypeRelative()
public boolean isTypeIndex()
public boolean isRelativeTop()
public boolean isRelativeParent()
public int getIndex()
@Deprecated public String toLocatorString()
Copyright © 2017. All rights reserved.