Assert Selected

Asserts, that an entry from a list is selected.
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 select (see WPath for a detailed description).
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 possible to use the '*' and the '?' character als wildcards; '*' matches zero or many characters; '?' matches one single character.
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 selected

Assert, that the color named 'red' from a select box labled 'Choose color' is selected.

Command Parameter Optional Parameter
assert-selected Choose color> red