Assert Deselected
Asserts, that an entry from a list is deselected.
Use this to check the selection from a single or multiple select list, a group of radio buttons or select a checkbox.
Parameters
wpath
The WPath identifying the item to check (see WPath for a detailed description).
It is also possible to define a > separated list of words (with '*' and '?' if needed). Then this command checks the first element after all these words.
- Single Select Box
- The path is usually the label of the select box, a > and then the text of the option to check.
- Multiple Select Box
- To make more than one selection in a multiple select box, use more than one Assert Select call.
- Radio Group
- Use the label of the radio button you like to select. If this text is not unique you can as always define some words before to make the path unique.
- Check Box
- Use the text usually placed after the checkbox you like to check. If this text is not unique you can as always define some words before to make the path unique.
It is also possible to define a > separated list of words (with '*' and '?' if needed). Then this command checks the first element after all these words.
Examples
Assert, that an entry from a select box is deselected
Assert, that the color named 'red' from a select box labled 'Choose color' is deselected.
Command | Parameter | Optional Parameter | |
---|---|---|---|
assert-deselected | Choose color> red |