assertNotValue (UI Automation - Interrogation)
Compatible with:
- Purpose
- Generated from getValue(locator)
- Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not.
- This command is used to verify that the pattern present in input field doesn't match with the pattern given in the Value in the page.
- Syntax
- assertNotValue(locator, pattern)
- Target
- locator - an element locator
- Value
- pattern
- Return Value
- Returns true if the pattern doesn't match the value in the input field.