There are many validations bundled in the core modules which will perform validations.
The validation module has many variations of validations it can perform.
validatetitleisis_not
text_ofelementisis_not
present <selector>not_present <selector>value_ofelementisis_not
is_checkedelement
is_not_checkedelement
Validate the title is "Google"
- validate:
title: is=GoogleValidate the title is not "Google"
- validate:
title: is_not=GoogleValidate the text of an element is "something"
- validate:
text_of:
element: css=span.message
is: somethingValidate the text of an element is not "something"
- validate:
text_of:
element: css=span.message
is_not: somethingValidate the value attribute of an element is "something"
- validate:
text_of:
element: css=span.message
is: somethingValidate the value attribute of an element is not "something"
- validate:
text_of:
element: css=span.message
is_not: somethingValidate that an element is present
- validate:
present: id=the_idValidate that an element is not present
- validate:
not_present:
id: the_idValidate that a checkbox or radio button is checked
- validate: is_checked=css=input[type='checkbox']
- validate: is_checked=id=thecheckbox
- validate:
is_checked:
tag: inputValidate that a checkbox or radio button is unchecked
- validate: is_not_checked=css=input[type='checkbox']
- validate: is_not_checked=id=thecheckbox
- validate:
is_not_checked:
tag: input