Skip to content

assertNotVisible (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from isNotVisible(locator) 
  • This command is used to determine if the specified element is not visible on UI. 
  • An element can be rendered invisible by setting the CSS "visibility" property to "hidden", or the "display" property to "none", either for the element itself or one if its ancestors.
  • Syntax
  • assertNotVisible(locator)
  • Target
  • locator - an element locator
  • Value
  • N/A
  • Return Value
  • Returns true if the specified element is not visible, false otherwise
 

Feedback and Knowledge Base