---
name: playwright-automation-fill-in-form-aa0b0fe11e32
description: "Use when a developer needs to automate filling in a web form without submitting it — when they say 'fill in the form at URL', 'automate this form', 'enter these values in the web form', or 'test form input'. Uses Playwright MCP with accessible locators (getByLabel, getByRole, getByPlaceholder). Fills text with fill(), selects dropdowns with selectOption(), handles file uploads with setInputFiles(). ALWAYS stops before submitting — shows a filled-values summary and waits for human review. Auto-loads when form filling, web automation, input testing, or Playwright form interaction is mentioned."
---

# Automating Filling in a Form with Playwright MCP

Your goal is to automate the process of filling in a form using Playwright MCP.

## Specific Instructions

Navigate to the form URL provided by the user. If no URL is provided, ask for one.

### Fill in the form with the details the user provides:

Use accessible locators to find each field — prefer `getByLabel`, `getByRole`, `getByPlaceholder`.

For each field:
1. Locate the field using its label or role
2. Fill it using `fill()` for text, `selectOption()` for dropdowns, `setInputFiles()` for file uploads
3. Verify the value was entered correctly before moving to the next field

**DO NOT SUBMIT THE FORM.**

Ask the user to review all filled values before submitting. Show a summary of what was entered.

---
Source attribution: SriSatyaLokesh
Original project: https://github.com/SriSatyaLokesh/copilot-team-workflow
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: SriSatyaLokesh
Original project: https://github.com/SriSatyaLokesh/copilot-team-workflow
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering
Roles: Backend Developer, Frontend Developer, QA / Test Engineer
Specialties: Testing
Tools: Playwright
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: df11fc326ee1ec8a1c47809cd0571cd66ecd483db8ed1ce154f1f969a7060ce8
