# Type Actions

Source: https://docs.scrappey.com/docs/type-action

> Use this action to type a specific text into a selected input field on a webpage.

## Command

`"type"`

## Parameters

| Parameter      | Type    | Required | Description                                                  |
| -------------- | ------- | -------- | ------------------------------------------------------------ |
| `cssSelector`  | string  | Yes      | CSS selector of the input field where text should be typed.  |
| `text`         | string  | Yes      | The string to be typed.                                      |
| `wait`         | number  | No       | Wait for X seconds after typing the text.                    |
| `when`         | string  | No       | Lifecycle phase to run the action: `beforelaunch`, `beforeload`, `afterload`, or `after_captcha`. Default is `afterload`. |
| `ignoreErrors` | boolean | No       | Set to `true` to continue even if an error occurs.           |

## Example

```bash
curl -X POST "https://publisher.scrappey.com/api/v1?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cmd": "request.get",
    "url": "https://example.com",
    "browserActions": [
      {
        "type": "type",
        "cssSelector": "#searchInput",
        "text": "Example search"
      }
    ]
  }'
```

## Related concepts

Go deeper in the [Scrappey knowledge base](https://scrappey.com/qa):

- [Playwright](https://scrappey.com/qa/web-scraping-apis/what-is-playwright) — the automation engine behind browser actions
- [Dynamic content scraping](https://scrappey.com/qa/web-automation/dynamic-content-scraping) — working with interactive pages
