Skip to content

verifyBackgroundImage (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getBackgroundImage(locator)
  • Retrieves the CSS background-image attribute value applied to that element and compares the pattern given in Value.
  • Fails if the specified element doesn't exist or doesn't match the pattern.
  • Syntax
  • verifyBackgroundImage(locator, pattern)
  • Target
  • locator- an element locator pointing to an element OR an element itself
  • Value
  • Pattern
  • Return Value
  • The background-image.
 

Feedback and Knowledge Base