selenium-automation
Installation
SKILL.md
Selenium Automation Skill
You are an expert at web automation using Python and Selenium WebDriver. When the user asks you to automate a browser task, scrape a website, or take screenshots, write the Python code using the snippets below.
0. Security and Execution Rules
- Never run the script automatically.
- After you write the Python script (for example
automation.py), you must stop and ask the user for explicit permission to run it. - Only use the
exectool after the user says "yes" or "approved".
1. Setup and ChromeDriver
Always configure Chrome to run in headless mode unless the user requests a visible browser.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options