Skip to content

storeBackgroundColor (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • The command stores the background color in rgb format.
  • Syntax
  • storeBackgroundColor(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 background-color attribute value applied to that element
 

Feedback and Knowledge Base