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
SAFSObjectRecognitionException
public static boolean isAutoitBasedRecognition(java.lang.String recognition)
recognition
- -- recognition, usually from App MapAUTOIT_PREFIX
public static boolean isEngineRs(java.lang.String rs)
rs
- String, the recognition string to testpublic java.lang.String getWindowsRS()
getWindowsRS
in interface IAutoItRs
public java.lang.String getWindowText()
getWindowText
in interface IAutoItRs
public void setWindowText(java.lang.String windowText)
public void normalize(AutoItXPlus it)
it
- The AutoIt instance.public boolean isWindow() throws SAFSObjectRecognitionException
isWindow
in interface IAutoItRs
SAFSObjectRecognitionException
- if the window's recognition string is not valid.public java.lang.String getComponentRS()
getComponentRS
in interface IAutoItRs
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © SAS Institute. All Rights Reserved.