submitForm

Submits a form.

Arguments

Name Type Required Default Description
selectorOrName string true The selector or name of the button to press.
inputs struct false {} The form values to submit.
If not provided, uses the values stored in Integrated combined with any values on the current page.
overrideEvent string false The event to run instead of the form's default.

Examples

it( "can submit a form", function() {
    this.visit( "/login" )
        .submitForm(
            selectorOrName = "Log In",
            inputs = {
                "email" = "scotty@uss.enterprise",
                "password" = "miracle_worker"
            }
        );
} );