Skip to content

verifyAttribute (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • This Command is used to Verify the value of an element attribute. The value of the attribute may differ across browsers (this is the case for the "style" attribute, for example).
  • Syntax
  • verifyAttribute(attributeLocator, pattern)
  • Target
  • attributeLocator - an element locator followed by an @ sign and then the name of the attribute, e.g. "foo@bar"
  • Value
  • pattern
  • Return Value
  • Returns the value of the specified attribute
 

Feedback and Knowledge Base