press

Press a submit button.

Arguments

Name Type Required Default Description
selectorOrName string true The selector or name of the button to press.
overrideEvent string false The event to run instead of the form's default.

Examples

it( "can press the submit button of a form", function() {
    this.visit( "/login" )
        .type( "scotty@uss.enterprise", "email" )
        .type( "miracle_worker", "password" )
        .press( "Log In" );
} );