# Populate an input field

Use the action `Charles: Populate input field` workflow action and give it:

* A text value to populate the input with
* A CSS selector to select the input you want to populate
* Please note that Charles will automatically select the first element that matches the selector.

<figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2F7PqdQLI6puOSfuectQeh%2Fimage.png?alt=media&#x26;token=a43ab317-ec19-4010-a547-3f4660563533" alt=""><figcaption></figcaption></figure>

Learn more about CSS selectors:

* <https://www.w3schools.com/jsref/met_document_queryselector.asp>
* <https://www.w3schools.com/css/css_selectors.asp>
* <https://www.w3schools.com/cssref/css_selectors.php>
