[Windows] Wait for Element Attribute Value
Description
Wait until the given element has an attribute with the specified name and value within the given time in the second unit.
Keyword name: waitForElementAttributeValue
Parameters
Parameter | Parameter Type | Required | Description |
---|---|---|---|
windowsObject | WindowsTestObject | Yes | An object that describes locator and locator strategy of the target element that needs to wait for. |
attributeName | String | Yes | The name of the attribute name to verify. |
attributeValue | String | Yes | The value of the expected attribute value to verify. |
timeout | Integer | Yes | System will wait at most timeout (seconds) to return the result.
|
Returns
Parameter Type | Description |
---|---|
Boolean | true if the element has the attribute with the specified name and value; Otherwise, false . |
Example
"Wait to expect 'Text Editor' is the value of attribute 'Name' of the edit panel"
assert Windows.waitForElementAttributeValue(findWindowsObject('Object Repository/Edit'), 'Name', 'Text Editor', 10)