Skip to content

assertOpacity (UI Automation - Interrogation)

Compatible with:
  • Purpose 
  • Generated from getOpacity(locator)
  • This command retrieves the CSS opacity attribute value applied to that element.
  • Syntax
  • assertOpacity(locator, pattern)
  • Target
  • locator - An element locator pointing to an element OR an element itself.
  • Value
  • pattern - The pattern to be verified.
  • Return Value
  • The opacity value.
 

Feedback and Knowledge Base