public class AutoItRs extends java.lang.Object implements IAutoItRs
The recognition string is composed with pairs of RsKey=value separated by semi-colon ; such as key1=value;key2=value
Window Recognition:
Note: the case-insensitive ":autoit:" prefix MUST appear in Window RS and will be removed when parsing.
The window's RsKey (case-insensitive) can be
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AutoItRs.Control
The AUTOIT Control object, the implementation of
AutoItRs.Recognizable |
protected static class |
AutoItRs.DefaultRecognizable
This class provides default implementation of interface
AutoItRs.Recognizable.As the field of name starting with Constants.AutoItConstants.PREFIX_PROPERTY_FOR_RS
will be used for generating recognition string, please avoid adding new fields of
name starting with Constants.AutoItConstants.PREFIX_PROPERTY_FOR_RS to this class
when refactoring this class. |
protected static class |
AutoItRs.DefaultRecognizableAutoIt
This class provides default implementation of interface
AutoItRs.Recognizable for AUTOIT engine. |
protected static interface |
AutoItRs.Recognizable
This interface represents something can be used by automation tool to find AUT's window or component.
|
protected static class |
AutoItRs.Window
The AUTOIT Window object, the implementation of
AutoItRs.Recognizable |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTOIT_DELIMITER
";"
|
static java.lang.String |
AUTOIT_PREFIX
":autoit:"
|
| Constructor and Description |
|---|
AutoItRs(java.lang.String winRawRS,
java.lang.String compRawRS) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentRS() |
java.lang.String |
getWindowsRS() |
java.lang.String |
getWindowText() |
static boolean |
isAutoitBasedRecognition(java.lang.String recognition)
Attempt to determine if recognition string is for autoit testing
|
static boolean |
isEngineRs(java.lang.String rs)
If the RS begins with [ and ends with ], then it is considered as AUTOIT RS.
|
boolean |
isWindow() |
void |
normalize(AutoItXPlus it)
If the window title is not complete, call this method to complete.
|
void |
setWindowText(java.lang.String windowText) |
java.lang.String |
toString() |
public static final java.lang.String AUTOIT_PREFIX
public static final java.lang.String AUTOIT_DELIMITER
public AutoItRs(java.lang.String winRawRS,
java.lang.String compRawRS)
throws SAFSObjectRecognitionException
SAFSObjectRecognitionExceptionpublic static boolean isAutoitBasedRecognition(java.lang.String recognition)
recognition - -- recognition, usually from App MapAUTOIT_PREFIXpublic static boolean isEngineRs(java.lang.String rs)
rs - String, the recognition string to testpublic java.lang.String getWindowsRS()
getWindowsRS in interface IAutoItRspublic java.lang.String getWindowText()
getWindowText in interface IAutoItRspublic void setWindowText(java.lang.String windowText)
public void normalize(AutoItXPlus it)
it - The AutoIt instance.public boolean isWindow()
throws SAFSObjectRecognitionException
isWindow in interface IAutoItRsSAFSObjectRecognitionException - if the window's recognition string is not valid.public java.lang.String getComponentRS()
getComponentRS in interface IAutoItRspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © SAS Institute. All Rights Reserved.