Back to Docs
Interaction

fill

Fill an input field with a value. React/Vue compatible -- uses the native setter and dispatches input + change events.

Usage

$ cdpilot fill <selector> <value>

Arguments

NameRequiredDescription
selectorrequiredCSS selector of the input element
valuerequiredText value to fill

Examples

Fill an email input

$ npx cdpilot fill "#email" "[email protected]"

Fill a search field by attribute

$ npx cdpilot fill "input[name=search]" "cdpilot"