[Windows] Get Attribute
Description
Get the attribute value of a Windows element
Keyword name: getAttribute
Parameters
Parameter | Parameter Type | Required | Description |
---|---|---|---|
windowsObject | WindowsTestObject | Yes | An object describing the locator and locator strategy to find a Windows element. |
attribute | String | Yes | Name of the attribute. |
Returns
Parameter Type | Description |
---|---|
String | Value of the attribute. |
Example
"Get attribute value of 'Name' of the edit panel"
def attributeValue = Windows.getAttribute(findWindowsObject("Object Repository/Edit"), 'Name')
assert attributeValue == 'Text Editor'