Package jp.vmi.selenium.selenese.locator
Class Locator
- java.lang.Object
-
- jp.vmi.selenium.selenese.locator.Locator
-
public class Locator extends Object
Parsed locator.
-
-
Field Summary
Fields Modifier and Type Field Description Stringargargument for locator type.static StringCSSstatic StringDOMstatic Locator[]EMPTY_ARRAYthe array of empty locators.Deque<Integer>frameIndexListframe list.static StringIDstatic StringIDENTIFIERstatic StringINDEXstatic StringLINKStringlocatorlocator.static StringNAMEstatic StringOPTION_LOCATOR_SEPARATORDeprecated.OptionLocatorpoptlocoption locator.static StringRELATIVEstatic StringRELATIVE_PARENTstatic StringRELATIVE_TOPStringtypelocator type.static StringXPATH
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetIndex()booleanisRelativeParent()booleanisRelativeTop()booleanisTypeIndex()booleanisTypeRelative()StringtoLocatorString()Deprecated.StringtoString()LocatorwithOption(String option)Add option locator.
-
-
-
Field Detail
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
DOM
public static final String DOM
- See Also:
- Constant Field Values
-
XPATH
public static final String XPATH
- See Also:
- Constant Field Values
-
LINK
public static final String LINK
- See Also:
- Constant Field Values
-
CSS
public static final String CSS
- See Also:
- Constant Field Values
-
RELATIVE
public static final String RELATIVE
- See Also:
- Constant Field Values
-
INDEX
public static final String INDEX
- See Also:
- Constant Field Values
-
RELATIVE_TOP
public static final String RELATIVE_TOP
- See Also:
- Constant Field Values
-
RELATIVE_PARENT
public static final String RELATIVE_PARENT
- See Also:
- Constant Field Values
-
OPTION_LOCATOR_SEPARATOR
@Deprecated public static final String OPTION_LOCATOR_SEPARATOR
Deprecated.Separator between locator and option locator.- See Also:
- Constant Field Values
-
EMPTY_ARRAY
public static final Locator[] EMPTY_ARRAY
the array of empty locators.
-
locator
public final String locator
locator.
-
type
public final String type
locator type.
-
arg
public final String arg
argument for locator type.
-
poptloc
public final OptionLocator poptloc
option locator.
-
-
Constructor Detail
-
Locator
public Locator(String locator)
Constructor.- Parameters:
locator- locator with option. (separated by OPTION_LOCATOR_SEPARATOR)
-
-
Method Detail
-
withOption
public Locator withOption(String option)
Add option locator.- Parameters:
option- option locator.- Returns:
- locator with option.
-
isTypeRelative
public boolean isTypeRelative()
-
isTypeIndex
public boolean isTypeIndex()
-
isRelativeTop
public boolean isRelativeTop()
-
isRelativeParent
public boolean isRelativeParent()
-
getIndex
public int getIndex()
-
toLocatorString
@Deprecated public String toLocatorString()
Deprecated.
-
-