Skip to content

storeAttribute (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • Gets the value of an element attribute.
  • Syntax
  • storeAttribute(attributeLocator, variableName)
  • Target
  • attributeLocator - an element locator followed by an @ sign and then the name of the attribute, e.g. "foo@bar".
  • Value
  • variableName - where the attribute value of specified element will be stored.
  • Return Value
  • The value of the specified attribute Gets 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).
 

Feedback and Knowledge Base