public class RApplicationMap extends ApplicationMap
Creates a SingletonSTAFHelper to satisfy the STAFHelper requirements of the ApplicationMap superclass if it has not already been created.
mapname
staf
Constructor and Description |
---|
RApplicationMap(java.lang.String mapname,
Script script)
Creates a RApplicationMap handler with the necessary name and RobotJ object.
|
Modifier and Type | Method and Description |
---|---|
TestObject |
findChild(TestObject parent,
java.lang.String childPath)
Find children from parent object.
|
TestObject |
findMappedChild(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache,
java.util.List gather)
Attempts to provide the RobotJ TestObject matching the named references.
|
TestObject |
findMappedChild(java.lang.String windowName,
java.lang.String wildcardChildName,
java.lang.String nameString)
Attempts to provide the RobotJ TestObject matching the named references.
|
TestObject |
findMappedParent(java.lang.String windowName,
boolean ignoreCache)
Attempts to provide the RobotJ TestObject matching the named references.
|
TestObject |
findParent(java.lang.String windowName)
Find parent from the root object.
|
TestObject |
getChildTestObject(java.lang.String windowName,
java.lang.String childName,
boolean ignoreCache)
Retrieves the object stored for the given window's child.
|
TestObject |
getParentTestObject(java.lang.String windowName,
boolean ignoreCache)
Retrieves the actual Object for the given windowName.
|
static boolean |
isGUIIDDynamic(java.lang.String recognition)
Override superclass static method.
|
clearMap, extractTaggedGUIID, getChildGUIID, getChildGUIID, getChildObject, getMapName, getParentGUIID, getParentGUIID, getParentObject, setChildObject, setParentObject
getSTAFHelper, setSTAFHelper
public RApplicationMap(java.lang.String mapname, Script script)
mapname
- the name of the map. This should be identical to
the name of an AppMap handled by the SAFSMAPS service.
script
- the RobotJ script object needed for RobotJ API calls.public TestObject getParentTestObject(java.lang.String windowName, boolean ignoreCache)
windowName
- the name of the parent object stored in the AppMap.
ignoreCache
- will ignore the cached TestObject, and refind it if true.public TestObject getChildTestObject(java.lang.String windowName, java.lang.String childName, boolean ignoreCache)
windowName
- the name of the parent as stored in the AppMap.
childName
- the name of the parent's child.
ignoreCache
- will ignore the cached TestObject, and refind it if true.public static boolean isGUIIDDynamic(java.lang.String recognition)
recognition
- public TestObject findMappedParent(java.lang.String windowName, boolean ignoreCache)
WIN domains are handled last so that the other domains have a chance to locate their objects before the more generic WIN domain processes them.
windowName
- the name of the parent window to retrieve.
ignoreCache
- will ignore the cached TestObject, and refind it if true.
public TestObject findMappedChild(java.lang.String windowName, java.lang.String childName, boolean ignoreCache, java.util.List gather)
windowName
- the name of the parent window to search.
childName
- the name of the parent's child to find. This value should
be identical to windowName if it is the window itself that
we are seeking.
ignoreCache
- will ignore the cached TestObject, and refind it if true.gather,
- List containing names matched, if null, then match first namepublic TestObject findMappedChild(java.lang.String windowName, java.lang.String wildcardChildName, java.lang.String nameString)
windowName
- the name of the parent window to search.
wildcardChildName
- the name of the wildcard parent's child to find.
It should have an appmap entry which ends with Name=*
The 'nameString' value will be replaced for the *
nameString,
- name of the actual component, (childName should end in Name=*)
public TestObject findParent(java.lang.String windowName)
windowProp
- window pathpublic TestObject findChild(TestObject parent, java.lang.String childPath)
parent
- - parent objectchildPath
- - child path (child window recognition string)Copyright © SAS Institute. All Rights Reserved.