public class AutomationElement extends Object
| Constructor and Description |
|---|
AutomationElement(IUIAutomationElement element)
Constructor of AutomationElement
|
| Modifier and Type | Method and Description |
|---|---|
String |
cachedName()
Gets the cached name of the control
|
String |
currentClassName()
Gets the current class name of the element
|
int |
currentControlType()
Gets the current control type
|
Boolean |
currentIsPassword()
Gets the current IsPassword value.
|
String |
currentName()
Gets the current name of the control
|
List<AutomationElement> |
findAll(TreeScope scope,
IUIAutomationCondition condition)
Gets all of the elements that match the condition and scope
|
List<AutomationElement> |
findAllBuildCache(TreeScope treeScope,
Condition condition,
IUIAutomationCacheRequest cacheRequest)
Find all, but from the cache
|
AutomationElement |
findFirst(TreeScope scope,
Condition condition)
Finds the first element that matches the condition
|
AutomationElement |
findFirstBuildCache(TreeScope treeScope,
Condition condition,
IUIAutomationCacheRequest cacheRequest)
Finds the first element that matches the condition, building the cache
|
String |
getAcceleratorKey()
Gets the current accelerator key associated with the element
|
String |
getAriaRole()
Gets the current ARIA role
|
com4j.Com4jObject |
getCurrentPattern(int patternId)
Get the current pattern that matches the patternId
|
Object |
getCurrentPropertyValue(int propertyId)
Gets the property associated with the passed in id
|
String |
getFrameworkId()
Gets the framework ID
|
String |
getItemStatus()
Gets the current item status
|
OrientationType |
getOrientation()
Gets the current orientation
|
Object |
getProcessId()
Gets the process ID
|
String |
getProviderDescription()
Gets the provider description
|
int[] |
getRuntimeId()
Get the runtime Id
|
void |
setFocus()
Sets focus to the element
|
void |
setName(String name)
Sets the name of the element
|
public AutomationElement(IUIAutomationElement element)
element - The elementpublic Object getCurrentPropertyValue(int propertyId)
propertyId - The property ID to getpublic int currentControlType()
public String currentClassName()
public Boolean currentIsPassword()
public String currentName()
public String cachedName()
public void setName(String name)
name - The name to usepublic AutomationElement findFirst(TreeScope scope, Condition condition)
scope - Tree scopecondition - The conditionpublic com4j.Com4jObject getCurrentPattern(int patternId)
patternId - What pattern to getpublic void setFocus()
public List<AutomationElement> findAll(TreeScope scope, IUIAutomationCondition condition)
scope - The scope in the element treecondition - The conditionpublic String getAriaRole()
public OrientationType getOrientation()
public String getFrameworkId()
public String getProviderDescription()
public int[] getRuntimeId()
public Object getProcessId()
public String getItemStatus()
public String getAcceleratorKey()
public List<AutomationElement> findAllBuildCache(TreeScope treeScope, Condition condition, IUIAutomationCacheRequest cacheRequest)
treeScope - The treeScopecondition - The filter conditioncacheRequest - The cache requestpublic AutomationElement findFirstBuildCache(TreeScope treeScope, Condition condition, IUIAutomationCacheRequest cacheRequest)
treeScope - Tree scopecondition - The conditionCopyright © 2016. All rights reserved.