Assert Enabled
Asserts, that an item is enabled and not readonly.
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.
- Input Field, Password Field, Text Area, File Upload
- The path is usually the label of the field.
- Single Select Box, Multiple Select Box
- The path is usually the label of the select box, a > and then the text of the option to check.
- 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 select. 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 field is enabled
Assert that the entry field labled 'Color' is enabled.
Command | Parameter | Optional Parameter | |
---|---|---|---|
assert-enabled | Color |