public class WDLocator extends Locator
Modifier and Type | Class and Description |
---|---|
static class |
WDLocator.WDType |
Locator.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FRAMEINFO |
static java.lang.String |
NAME_TYPE
'type' the key to keep Locator's type field value in a JSON string.
|
static java.lang.String |
NAME_VALUE
'value' the key to keep Locator's type field value in a JSON string.
|
WDLocator.WDType |
wdtype |
Constructor and Description |
---|
WDLocator(Locator.Type type,
java.lang.String value) |
WDLocator(Locator l) |
WDLocator(java.lang.String type,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
find(com.sebuilder.interpreter.TestRun ctx) |
boolean |
findElementNotPresent(com.sebuilder.interpreter.TestRun ctx) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(com.sebuilder.interpreter.TestRun ctx) |
static java.lang.String |
getFrameInfo() |
static void |
resetFrameInfo()
Reset the field 'frameInfo' to
DEFAULT_FRAMEINFO .If we have called 'SwitchToFrame' or 'SelectFrame', the field 'frameInfo' will be set so that we can find the element in the correct frame. Then if we close this session, and start a new session, this field 'frameInfo' should be reset to empty string. This should be called at the begin (or the end) of a session; in the command 'open', 'get' or 'close' etc. |
static void |
setFrameInfo(java.lang.String _frameInfo) |
org.json.JSONObject |
toJSON() |
java.lang.String |
toPrettyString() |
public static final java.lang.String NAME_TYPE
public static final java.lang.String NAME_VALUE
public static final java.lang.String DEFAULT_FRAMEINFO
public WDLocator.WDType wdtype
public WDLocator(Locator l)
l
- public WDLocator(Locator.Type type, java.lang.String value)
type
- value
- public WDLocator(java.lang.String type, java.lang.String value)
type
- value
- public static void resetFrameInfo()
DEFAULT_FRAMEINFO
.public static void setFrameInfo(java.lang.String _frameInfo)
public static java.lang.String getFrameInfo()
public org.json.JSONObject toJSON() throws org.json.JSONException
public java.lang.String toPrettyString()
toPrettyString
in class Locator
public org.openqa.selenium.WebElement find(com.sebuilder.interpreter.TestRun ctx)
public boolean findElementNotPresent(com.sebuilder.interpreter.TestRun ctx)
ctx
- public java.util.List<org.openqa.selenium.WebElement> findElements(com.sebuilder.interpreter.TestRun ctx)
findElements
in class Locator
Copyright © SAS Institute. All Rights Reserved.