Skip to main content

[Windows] Verify Element Attribute Value

  • From version 7.6.0, this keyword is available.


  • 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: verifyElementAttributeValue
  • Keyword syntax:
    Windows.verifyElementAttributeValue(windowsObject,attributeName, attributeValue, timeout)
  • Parameters:

    • Name: windowsObject

      • Description: An object that describes locator and locator strategy of the target element that needs to wait for
      • Parameter Type: WindowsTestObject
      • Mandatory: Required
    • Name: attributeName

      • Description: The name of the attribute name to verify
      • Parameter Type: String
      • Mandatory: Required
    • Name: attributeValue

      • Description: The value of the expected attribute value to verify
      • Parameter Type: String
      • Mandatory: Required
    • Name: timeout

      • Description: System will wait at most timeout (seconds) to return the result
        • If timeout = 0, Katalon Studio will use the default page load timeout
        • If timeout < 0, throws IllegalArgumentException
      • Parameter Type: Integer
      • Mandatory: Required
  • Return value:

    • Description: true if the element has the attribute with the specified name and value; Otherwise, false
    • Type: Boolean
  • Example:

"Verify to expect 'Text Editor' is the value of attribute 'Name' of the edit panel"
assert Windows.verifyElementAttributeValue(findWindowsObject('Object Repository/Edit'), 'Name', 'Text Editor', 10)