select

Selects a given option in a given select field.

Arguments

Name Type Required Default Description
option string true The value or text to select.
selectorOrName string true The selector or name to choose the option in.

Examples

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