Back to catalog

browser-automation-pro

Advanced browser automation combining element extraction, GitHub checking, and intelligent element identification.

  • Category: Automation
  • Tags: github, web, automation, extraction
  • Version: 1.0.0
  • Author: walid
  • Downloads: 1
  • Updated: 2026-01-13

Download the latest version (v1.0.0) from this page.

SKILL.md

---
name: browser-automation-pro
description: Advanced browser automation combining element extraction, GitHub checking, and intelligent element identification. This skill should be used when automating web interactions, finding reusable solutions, identifying elements to click, or combining multiple tools for comprehensive automation. It combines browser automation with GitHub search, element extraction, and intelligent element identification.
---

# Browser Automation Pro

Expert guidance for advanced browser automation combining element extraction, GitHub integration, and intelligent element identification.

## Overview

This skill provides comprehensive browser automation capabilities that combine element extraction, GitHub solution checking, intelligent element identification, and multi-tool integration.

## Quick Start

### Automate with Intelligence

```bash
python scripts/automate_with_intelligence.py --url "https://example.com" --action "click sign in" --check-github
python scripts/find_and_click.py --url "https://example.com" --element-text "Profile" --output automation.json
python scripts/check_reusable_solution.py --task "login automation" --github --output solutions.json
```

## Core Capabilities

### Intelligent Element Identification

**Process:**
1. Extract all elements from page
2. Identify target element by:
   - Text content
   - Visual appearance
   - Position
   - Context
   - Accessibility labels
3. Generate robust selector
4. Execute action

**Features:**
- Fuzzy text matching
- Visual element detection
- Context-aware selection
- Multiple fallback strategies

### GitHub Integration

**Check for Existing Solutions:**
- Search GitHub for similar automation
- Find reusable code
- Check for existing selectors
- Learn from community solutions

**Benefits:**
- Avoid reinventing the wheel
- Use proven solutions
- Learn best practices
- Reuse existing code

### Multi-Tool Combination

**Tools Combined:**
- Browser automation (Playwright/Puppeteer)
- Element extraction
- GitHub search
- Screenshot analysis
- Network monitoring

**Workflow:**
1. Analyze page structure
2. Check GitHub for solutions
3. Extract elements
4. Generate selectors
5. Execute automation
6. Verify results

## Automation Patterns

### Smart Clicking

**Process:**
```python
# Find element by text
element = find_element_by_text(page, "Sign In")

# Generate selector
selector = generate_robust_selector(element)

# Check GitHub for similar implementations
github_solutions = check_github("playwright click sign in button")

# Use best approach
if github_solutions:
    use_proven_solution(github_solutions[0])
else:
    page.click(selector)
```

### Form Filling

**Process:**
1. Extract form structure
2. Identify input fields
3. Check GitHub for form patterns
4. Fill form intelligently
5. Submit with verification

### Navigation

**Process:**
1. Extract navigation structure
2. Identify target page
3. Generate navigation path
4. Execute navigation
5. Verify arrival

## GitHub Integration

### Search Patterns

**Search For:**
- Similar automation tasks
- Selector patterns
- Best practices
- Code examples
- Test cases

**Example:**
```python
# Check GitHub for login automation
results = github_search("playwright login automation example")

# Extract reusable patterns
reusable_code = extract_patterns(results)

# Use in automation
apply_patterns(reusable_code)
```

### Code Reuse

**Extract:**
- Selector patterns
- Automation flows
- Error handling
- Best practices

**Apply:**
- Adapt to current context
- Modify as needed
- Test thoroughly
- Document changes

## Best Practices

### Element Identification

**Strategies:**
1. Try semantic selectors first (data-testid, aria-label)
2. Use text content matching
3. Fall back to visual detection
4. Use position as last resort

### Error Handling

**Robustness:**
- Multiple selector fallbacks
- Wait for elements
- Retry logic
- Screenshot on failure
- Detailed logging

### GitHub Usage

**Best Practices:**
- Check before coding
- Learn from examples
- Adapt, don't copy
- Contribute back
- Document sources

## Resources

- **Playwright:** Browser automation
- **GitHub API:** Code search
- **BeautifulSoup:** HTML parsing
- **Selenium:** Web automation


# Check GitHub for similar implementations
github_solutions = check_github("playwright click sign in button")

# Use best approach
if github_solutions:
    use_proven_solution(github_solutions[0])
else:
    page.click(selector)
```

### Form Filling

**Process:**
1. Extract form structure
2. Identify input fields
3. Check GitHub for form patterns
4. Fill form intelligently
5. Submit with verification

### Navigation

**Process:**
1. Extract navigation structure
2. Identify target page
3. Generate navigation path
4. Execute navigation
5. Verify arrival

## GitHub Integration

### Search Patterns

**Search For:**
- Similar automation tasks
- Selector patterns
- Best practices
- Code examples
- Test cases

**Example:**
```python
# Check GitHub for login automation
results = github_search("playwright login automation example")

# Extract reusable patterns
reusable_code = extract_patterns(results)

# Use in automation
apply_patterns(reusable_code)
```

### Code Reuse

**Extract:**
- Selector patterns
- Automation flows
- Error handling
- Best practices

**Apply:**
- Adapt to current context
- Modify as needed
- Test thoroughly
- Document changes

## Best Practices

### Element Identification

**Strategies:**
1. Try semantic selectors first (data-testid, aria-label)
2. Use text content matching
3. Fall back to visual detection
4. Use position as last resort

### Error Handling

**Robustness:**
- Multiple selector fallbacks
- Wait for elements
- Retry logic
- Screenshot on failure
- Detailed logging

### GitHub Usage

**Best Practices:**
- Check before coding
- Learn from examples
- Adapt, don't copy
- Contribute back
- Document sources

## Resources

- **Playwright:** Browser automation
- **GitHub API:** Code search
- **BeautifulSoup:** HTML parsing
- **Selenium:** Web automation