web-form-automation_skill

This skill automates web form interactions using Playwright, handling login, file uploads, text input, and reliable submission with session support.
  • Python

2.6k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill web-form-automation

  • _meta.json292 B
  • SKILL.md5.3 KB

Overview

This skill automates web form interactions with Playwright, handling login, file uploads, text input, and reliable form submission. It includes session management via cookies/localStorage, compressed image uploads (webp), and event-triggering techniques to ensure forms behave like real user interactions.

How this skill works

The skill launches a Playwright browser context, optionally restores session data (cookies and storage), navigates to target pages, and interacts with elements using robust methods. File inputs are populated with compressed webp images, text fields are filled using simulated typing that triggers input/change events, and submission buttons are clicked with options to force clicks when needed.

When to use it

  • Automating batch uploads to web forms or content platforms
  • Filling complex multi-field forms that require event triggers
  • Logging into sites using saved session cookies or storage
  • Uploading large images where compression and upload timing matter
  • Testing or scripting workflows that require reliable submit behavior

Best practices

  • Compress images to webp and resize large assets before uploading
  • Restore cookies and localStorage before navigation to reuse sessions
  • Use simulated typing (pressSequentially) instead of fill() to fire input events
  • Wait for upload processing (3+ seconds) and verify element states before submit
  • Use click({ force: true }) only when selectors are correct and button should be actionable

Example use cases

  • Automated video-generation form: upload start/end images, select options, type prompt, submit, and capture result
  • Bulk content submission: compress files to webp, iterate file inputs, wait for each upload, then submit
  • Headless login flow: load session JSON, add cookies/localStorage, then access authenticated pages
  • End-to-end testing: simulate real typing, trigger events, and validate that buttons enable before clicking

FAQ

WebP dramatically reduces file size, speeding uploads and reducing timeouts. Smaller uploads are more reliable for automated flows.

What if form buttons remain disabled after filling fields?

Ensure inputs trigger events by using simulated typing or dispatching input/change events, wait for uploads to finish, and confirm required fields are set.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational