返回顶部
s

selenium-automation

Browser automation skill using Selenium for web scraping, form filling, and UI testing. Use when Codex needs to automate browser interactions including: (1) Filling forms and submitting data, (2) Web scraping and data extraction, (3) UI testing and validation, (4) Clicking buttons and navigating pages, (5) Handling alerts and popups, (6) Taking screenshots of web pages

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
137
下载量
0
收藏
概述
安装方式
版本历史

selenium-automation

# Selenium Browser Automation Skill This skill provides comprehensive browser automation capabilities using Selenium WebDriver. ## Quick Start Basic form filling example: ```python # Fill and submit a form python scripts/form_filler.py --url https://example.com/login --username testuser --password testpass ``` Web scraping example: ```python # Extract data from a webpage python scripts/web_scraper.py --url https://example.com/data --output results.csv ``` ## Installation Requirements Before using this skill, install the required dependencies: ```bash pip install selenium webdriver-manager beautifulsoup4 pandas ``` ## Supported Browsers - **Chrome**: Full support with ChromeDriver - **Firefox**: Full support with GeckoDriver - **Edge**: Full support with EdgeDriver - **Safari**: Limited support (macOS only) ## Core Scripts ### Form Filling (`scripts/form_filler.py`) Automatically fill forms and submit data: ```python python scripts/form_filler.py --url https://example.com/login --username testuser --password testpass python scripts/form_filler.py --url https://example.com/contact --name "John Doe" --email "john@example.com" --message "Hello" ``` ### Web Scraper (`scripts/web_scraper.py`) Extract data from web pages: ```python python scripts/web_scraper.py --url https://example.com/products --output products.csv python scripts/web_scraper.py --url https://example.com/news --output news.json --format json ``` ### UI Tester (`scripts/ui_tester.py`) Perform UI testing and validation: ```python python scripts/ui_tester.py --url https://example.com --element "login-button" --action click python scripts/ui_tester.py --url https://example.com --element "username" --action type --text "testuser" ``` ## Usage Examples See [examples/](examples/) for comprehensive examples including: - Form filling with various input types - Web scraping with pagination - UI testing workflows - Error handling and retries - Browser configuration options ## Browser Configuration The scripts support various browser configurations: - Headless mode for background automation - Different viewport sizes - Custom user agents - Proxy support - Download directory configuration ## Error Handling Comprehensive error handling for: - Element not found - Page load timeouts - Network issues - Browser crashes - Form validation errors ## Advanced Features - **Wait strategies**: Explicit waits, implicit waits, fluent waits - **Element locators**: ID, CSS selectors, XPath, name, class - **JavaScript execution**: Run custom JavaScript in browser - **File uploads**: Handle file input fields - **Cookies management**: Get, set, and manage cookies - **Screenshots**: Capture full page or element screenshots ## Integration with Other Skills This skill can be combined with: - **browser-opener**: Open browsers programmatically - **data-processing**: Process scraped data - **file-operations**: Save and manage output files

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 selenium-automation-skill-1776123437 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 selenium-automation-skill-1776123437 技能

通过命令行安装

skillhub install selenium-automation-skill-1776123437

下载 Zip 包

⬇ 下载 selenium-automation v1.0.0

文件大小: 11.74 KB | 发布时间: 2026-4-14 14:04

v1.0.0 最新 2026-4-14 14:04
Initial release of selenium-automation skill

- Provides browser automation using Selenium for web scraping, form filling, UI testing, navigation, alert handling, and screenshot capture.
- Includes ready-to-use scripts for form filling, web scraping, and UI testing.
- Supports Chrome, Firefox, Edge (full), and Safari (limited) browsers.
- Features customizable browser configuration (e.g., headless mode, proxies), comprehensive error handling, and advanced automation features.
- Integration guidance for use with data-processing and file-operations skills.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部