Skip to content

assertValue (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getValue(locator) 
  • This command is used to verify if the (white space-trimmed) value of an input field (or anything else with a value parameter) matches the pattern given in Value. 
  • For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not.
  • Syntax
  • assertValue(locator, pattern)
  • Target
  • locator
  • Value
  • pattern
  • Return Value
  • Element value, or "on/off" for checkbox/radio elements.
 

Feedback and Knowledge Base