# Input
#### Contents
- [Text input](#text-input)
- [Checkboxes](#checkboxes)
- [Select options](#select-options)
- [Mouse click](#mouse-click)
- [Type characters](#type-characters)
- [Keys and shortcuts](#keys-and-shortcuts)
- [Upload files](#upload-files)
- [Focus element](#focus-element)
## Text input
```js
await page.fill('#name', 'Peter');
```
This is the easiest way to fill out the form fields. It focuses the element and triggers an `input` event with the entered text. It works for ``, `