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 -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetIndex()booleanisRelativeParent()booleanisRelativeTop()booleanisTypeIndex()booleanisTypeRelative()StringtoLocatorString()Deprecated.StringtoString()LocatorwithOption(String option)Add option locator.
-
Field Details
-
IDENTIFIER
- See Also:
- Constant Field Values
-
ID
- See Also:
- Constant Field Values
-
NAME
- See Also:
- Constant Field Values
-
DOM
- See Also:
- Constant Field Values
-
XPATH
- See Also:
- Constant Field Values
-
LINK
- See Also:
- Constant Field Values
-
CSS
- See Also:
- Constant Field Values
-
RELATIVE
- See Also:
- Constant Field Values
-
INDEX
- See Also:
- Constant Field Values
-
RELATIVE_TOP
- See Also:
- Constant Field Values
-
RELATIVE_PARENT
- See Also:
- Constant Field Values
-
OPTION_LOCATOR_SEPARATOR
Deprecated.Separator between locator and option locator.- See Also:
- Constant Field Values
-
EMPTY_ARRAY
the array of empty locators. -
locator
locator. -
type
locator type. -
arg
argument for locator type. -
poptloc
option locator. -
frameIndexList
frame list.
-
-
Constructor Details
-
Locator
Constructor.- Parameters:
locator- locator with option. (separated by OPTION_LOCATOR_SEPARATOR)
-
-
Method Details
-
withOption
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. -
toString
-