Skip to content

assertBackgroundColor (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Retrieves the css background-color attribute value applied to that element and compares it with the pattern given in Value.
  • Fails if the specified element doesn't exist or doesn't match the pattern.
  • Syntax
  • assertBackgroundColor(locator, pattern)
  • Target
  • locator- an element locator pointing to an element OR an element itself
  • Value
  • Pattern
  • Return Value
  • The background-color in rgb(r, g, b) format.
 

Feedback and Knowledge Base