seeIsSelected

Verifies that a given select field has a given option selected.

Arguments

Name Type Required Default Description
value string true The value or text of the option that should exist.
selectorOrName string true The selector or name of the select field to check for the value in.

Examples

it( "can verify an option is selected", function() {
    this.visit( "/contact-us" )
        .select( "I'm having a problem", "contact_reason" )
        .seeIsSelected( "I'm having a problem", "contact_reason" );
} );