Skip to content
Back to skills

Browser Automation

ASecurity

Automate browser interactions including form filling, clicking, typing, navigation, and screenshot capture. Use this skill when testing web apps, automating uploads, or validating UI on TikTok, YouTube, or other web platforms.

  • 33 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 10, 2026
toolsjavascriptgojavatesting

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add lovedragonball/power-ranger-toolkit --skill browser-automation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Browser Automation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Browser Automation
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/lovedragonball-browser-automation/badge)](https://www.skillsdirectory.com/skills/lovedragonball-browser-automation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: browser-automation
description: Automate browser interactions including form filling, clicking, typing, navigation, and screenshot capture. Use this skill when testing web apps, automating uploads, or validating UI on TikTok, YouTube, or other web platforms.
---

# 🌐 Browser Automation Skill

## Use Cases
- TikTok video upload automation
- Form auto-fill testing
- UI validation with screenshots
- Multi-step workflow automation

---

## Workflow

### 1. Page Navigation
```javascript
// Navigate and wait for load
await page.goto('https://example.com');
await page.waitForSelector('.target-element');
```

### 2. Element Interaction
```javascript
// Click
await page.click('button[type="submit"]');

// Type with delay
await page.type('input[name="title"]', 'Video Title', { delay: 100 });

// Select dropdown
await page.select('select#category', 'entertainment');
```

### 3. File Upload
```javascript
// Upload file
const input = await page.$('input[type="file"]');
await input.uploadFile('/path/to/video.mp4');
```

### 4. Wait Strategies
```javascript
// Wait for network idle
await page.waitForNavigation({ waitUntil: 'networkidle0' });

// Wait for specific element
await page.waitForSelector('.success-message', { timeout: 30000 });

// Wait for text
await page.waitForFunction(() => 
  document.body.textContent.includes('Upload complete')
);
```

### 5. Screenshot & Validation
```javascript
// Full page screenshot
await page.screenshot({ path: 'result.png', fullPage: true });

// Element screenshot
const element = await page.$('.preview');
await element.screenshot({ path: 'preview.png' });
```

---

## Decision Tree

```
Browser task?
β”œβ”€β”€ Login required? β†’ Use saved cookies/session
β”œβ”€β”€ Upload file? β†’ waitForSelector β†’ uploadFile β†’ waitForNavigation
β”œβ”€β”€ Fill form? β†’ Loop through fields with type()
β”œβ”€β”€ Validate result? β†’ Take screenshot + check text
└── Multi-step? β†’ Break into sequential waits
```

---

## Best Practices

| βœ… ΰΈ—ΰΈ³ | ❌ ΰΉ„ΰΈ‘ΰΉˆΰΈ—ΰΈ³ |
|------|---------|
| ΰΉƒΰΈŠΰΉ‰ waitForSelector ΰΈΰΉˆΰΈ­ΰΈ™ interact | Hardcode delays |
| Handle popup/modal cases | Assume elements always exist |
| Take screenshots on error | Ignore timeout errors |
| Use retry logic for flaky elements | Give up after 1 try |

---

## TikTok-Specific Tips

1. **Video upload element**: `input[type="file"][accept="video/*"]`
2. **Title field**: `div[contenteditable="true"]`
3. **Post button**: Look for specific button text/aria-label
4. **Wait for processing**: Check for progress indicator

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…