Skip to content

assertAttribute (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Gets the value of an element attribute and compares it with the pattern given in Value. The value of the attribute may differ across browsers (this is the case for the 'style' attribute, for example).
  • Syntax
  • assertAttribute(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
  • N/A

 

Feedback and Knowledge Base