Back to Docs
Interaction

submit

Submit a form by clicking its submit button or calling form.submit(). Defaults to the first <form> on the page.

Usage

$ cdpilot submit [<selector>]

Arguments

NameRequiredDescription
selectoroptionalCSS selector for the form. Defaults to "form".

Examples

Submit the first form on the page

$ npx cdpilot submit

Submit a specific form

$ npx cdpilot submit "#login-form"