Skip to content

assertNotText (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getText(locator) 
  • Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user. 
  • This command is used to verify the text of an element doesn't match with the specified text pattern given in Value. 
  • Syntax
  • assertNotText(locator, pattern)
  • Target
  • locator - an element locator
  • Value
  • pattern - Text
  • Return Value
  • Returns true if the pattern doesn't match the text of an element.
 

Feedback and Knowledge Base