seeInField

Verifies that a field with the given value exists on the current page.

Arguments

Name Type Required Default Description
value string true The expected value of the field.
selectorOrName string true The selector or name of the field to find the value in.

Examples

it( "can verify a field has a certain value", function() {
    this.visit( "/login" )
        .type( "scotty@uss.enterprise", "email" )
        .type( "miracle_worker", "password" )
        .seeInField( "scotty@uss.enterprise", "email" );
} );