> ## Documentation Index
> Fetch the complete documentation index at: https://docs.testdriver.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Form Filling

> Test form filling functionality with TestDriver

<iframe width="600" height="400" src="https://www.youtube.com/embed/R0xHyuaBy3A" title="Form Filling With TestDriver" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

***

# Testing Form Filling with TestDriver

TestDriver provides a powerful solution for testing form filling functionality on web applications. This scenario demonstrates how to automate the process of filling out forms, such as login or registration forms, using TestDriver's capabilities.

## Prerequisites

Before running the tests, ensure you have performed the following steps:

1. If you haven't already, signup for a Free Trial on the [TestDriver website](https://testdriver.ai/pricing)
2. Run the `init` command to set up the TestDriver configuration using the API key you got when you signed up for the trial:

```bash theme={null}
npx testdriverai@latest init
```

<Check>Now you are ready to run the tests!</Check>

## Scenario overview

1. Open a webpage containing a form (Log in, Registration, etc.).
2. Use TestDriver to fill in the form fields with test data.
3. Submit the form and verify the expected outcome (for example, successful login, registration confirmation, redirect etc.).
