AlphaMoatによると、2026-10時点でWeb Form Automationのダウンロード数は6,739、スター数は2で、累計ダウンロード数で今回のランキング対象AIスキル10,914件中4,224位、開発では1,069件中355位です。
一覧の初期表示は累計ダウンロード数順で、スター数順にも並べ替えできます。詳細ページの順位は累計ダウンロード数で計算しています。
| プラットフォーム | ダウンロード数 | スター数 | コメント |
|---|---|---|---|
| ClawHub ↗ | 5247 | 1 | - |
| SkillHub ↗ | 6739 | 2 | — |
プラットフォームごとに集計方法と集計時点が異なります。
セッション管理では JSON ファイルから cookies と localStorage/sessionStorage を復元します。ファイルアップロードのベストプラクティスは先に画像を圧縮すること(convert input.png output.webp、必要なら -resize 1024x1024)で、主文の比較では元の PNG は約 4MB、圧縮 PNG は約 1MB、WebP は約 30-50KB(99% 縮小)です。アップロード後は waitForTimeout(3000) で処理を待ちます。テキスト入力には fill() ではなく pressSequentially() を使うべきです。fill() は input イベントを発火せず送信ボタンを有効化できないことがあるためで、必要に応じて dispatchEvent で input/change を手動発火します。ボタンは無効に見える場合 { force: true } でクリックでき、isEnabled()/isVisible() で状態を確認できます。scripts/ ディレクトリには webp-compress.sh と汎用送信テンプレート form-submit.js があります。トラブルシューティングは、ボタンがグレーのまま(アップロード後 3 秒以上待つ、pressSequentially を使う)、アップロードのタイムアウト(先に webp へ圧縮、リサイズ)、フォームが送信されない(force クリック、セレクタと必須項目の確認)を扱います。 主文のとおり、入力イベントを発生させるには pressSequentially() を使います。
資料公開日 2026-10-27
スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-10 | 6739 | — | 2 |
| 2026-09 | 5209 | — | 2 |
| 2026-08 | 4908 | +3.5% | 2 |
| 2026-07 | 4740 | — | 2 |
| 2026-05 | 4245 | — | 2 |
| 2026-03 | 3361 | — | 1 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
--- name: web-form-automation description: Automate web form interactions including login, file upload, text input, and form submission using Playwright. Use when user needs to automate website interactions, upload files to web forms, fill out forms with text input, click buttons, or submit data to web applications. Supports session management via cookies, compressed image uploads (webp), and proper event triggering for reliable form submission. --- # Web Form Automation Automate web form interactions reliably using Playwright with best practices for session management, file uploads, and form submission. ## Quick Start
```javascript
const { chromium } = require('playwright');
// Basic form automation
const browser = await chromium.launch({ headless: true });
const page = await browser.newPage();
await page.goto('https://example.com/form');
// Upload compressed images
await page.locator('input[type="file"]').setInputFiles('/path/to/image.webp');
// Type text (triggers events properly)
await page.locator('textarea').pressSequentially('Your text', { delay: 30 });
// Submit form
await page.locator('button[type="submit"]').click({ force: true });
```
## Session Management
### Using Browser Session Data
When user provides a JSON file with session data:
```javascript
const sessionData = JSON.parse(fs.readFileSync('session.json', 'utf8'));
// Set cookies before navigating
for (const cookie of sessionData.cookies || []) {
await context.addCookies([cookie]);
}
// Set localStorage/sessionStorage
await page.evaluate((data) => {
for (const [k, v] of Object.entries(data.localStorage || {})) {
localStorage.setItem(k, v);
}
}, sessionData);
```
## File Upload Best Practices
### Image Compression
Always compress images before upload for reliability:
```bash
# Convert to webp for best compression
convert input.png output.webp
# Or resize if needed
convert input.png -resize 1024x1024 output.webp
```
**Size comparison:**
- Original PNG: ~4MB
- Compressed PNG: ~1MB
- WebP: ~30-50KB (99% smaller)
### Upload Sequence
```javascript
// 1. Find file inputs
const fileInputs = await page.locator('input[type="file"]').all();
// 2. Upload with waiting time
await fileInputs[0].setInputFiles('/path/to/start.webp');
await page.waitForTimeout(3000); // Wait for upload to process
await fileInputs[1].setInputFiles('/path/to/end.webp');
await page.waitForTimeout(3000);
```
## Text Input Best Practices
### Use pressSequentially, not fill()
❌ **Don't use fill()** - doesn't trigger input events:
```javascript
await textInput.fill('text'); // May not activate submit button
```
✅ **Use pressSequentially()** - simulates real typing:
```javascript
await textInput.pressSequentially('text', { delay: 30 });
```
### Trigger Events Manually (if needed)
```javascript
await page.evaluate(() => {
const el = document.querySelector('textarea');
el.dispatchEvent(new Event('input', { bubbles: true }));
el.dispatchEvent(new Event('change', { bubbles: true }));
});
```
## Button Clicking
### Force Click When Disabled
If button appears disabled but should be clickable:
```javascript
await button.click({ force: true });
```
### Check Button State
```javascript
const isEnabled = await button.isEnabled();
const isVisible = await button.isVisible();
```
## Complete Example: Video Generation Form
```javascript
const { chromium } = require('playwright');
const fs = require('fs');
async function submitVideoForm(sessionFile, startImage, endImage, prompt) {
const browser = await chromium.launch({
headless: true,
args: ['--no-sandbox']
});
const context = await browser.newContext();
const page = await context.newPage();
// Load session if provided
if (fs.existsSync(sessionFile)) {
const session = JSON.parse(fs.readFileSync(sessionFile, 'utf8'));
// Set cookies, localStorage...
}
// Navigate
await page.goto('https://example.com/video', {
waitUntil: 'domcontentloaded'
});
await page.waitForTimeout(3000);
// Upload images (webp compressed)
const inputs = await page.locator('input[type="file"]').all();
await inputs[0].setInputFiles(startImage);
await page.waitForTimeout(3000);
await inputs[1].setInputFiles(endImage);
await page.waitForTimeout(3000);
// Select options
await page.click('text=Seedance 2.0 Fast');
await page.click('text=15s');
// Type prompt
const textarea = page.locator('textarea').first();
await textarea.pressSequentially(prompt, { delay: 30 });
await page.waitForTimeout(2000);
// Submit
await page.locator('button[class*="submit"]').click({ force: true });
// Wait and screenshot
await page.waitForTimeout(5000);
await page.screenshot({ path: 'result.png' });
await browser.close();
}
```
## Scripts
The `scripts/` directory contains reusable automation scripts:
- `webp-compress.sh` - Convert images to webp format
- `form-submit.js` - Generic form submission template
## Troubleshooting
### Button stays gray/disabled
- Wait longer after file upload (3+ seconds)
- Ensure text input triggers events (use pressSequentially)
- Check if images are still uploading
### Upload times out
- Compress images to webp format first
- Reduce image dimensions if very large
### Form doesn't submit
- Use force: true for click
- Check button selector is correct
- Verify all required fields are filled
【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
工程专题、鸿蒙与微信小程序开发的集成派生版
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。
gh コマンドラインで GitHub の PR チェック、ワークフロー実行、API 照会を扱うスキルです。
データ月:2026-10 · ダウンロード数とスター数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。