Skip to content

storeColor (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • The command stores the color in rgb format.
  • Syntax
  • storeColor(locator, variableName)
  • Target
  • locator - an element locator pointing to an element OR an element itself.
  • Value
  • variableName – the name of a variable in which the result is to be stored.
  • Return Value
  • The background-color in rgb(r, g, b) format. Retrieves the css color attribute value applied to that element.
 

Feedback and Knowledge Base