Playwright Cli
Automates browser interactions and generates robust end-to-end tests using Microsoft's command-line tool.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add playwright-cli npx -- -y @trustedskills/playwright-cli
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"playwright-cli": {
"command": "npx",
"args": [
"-y",
"@trustedskills/playwright-cli"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The playwright-cli skill provides command-line tools for automating web browser interactions. It allows users to write and execute tests, generate API endpoints from web pages, and perform other tasks involving modern browsers like Chrome, Firefox, and WebKit. This skill streamlines the process of interacting with websites programmatically.
When to use it
- Automated Testing: Run end-to-end tests on a website or application to ensure functionality and identify bugs.
- Web Scraping/Data Extraction: Extract data from web pages by automating browser actions like clicking, scrolling, and form filling.
- API Generation: Create API endpoints that mimic the behavior of web pages for integration with other systems.
- Browser Automation: Automate repetitive tasks performed within a web browser, such as account creation or content submission.
Key capabilities
- Automated test execution across multiple browsers (Chrome, Firefox, WebKit)
- API endpoint generation from web pages
- Command-line interface for interacting with Playwright
- Support for various testing frameworks and programming languages
Example prompts
- "Run the tests in the 'e2e' directory."
- "Generate an API endpoint for the login form on example.com."
- "Install playwright and set up a new project."
Tips & gotchas
- Requires Node.js to be installed on your system before installation.
- Familiarity with JavaScript or TypeScript is helpful for writing tests and scripts using Playwright.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🏢 Official
Published by the company or team that built the technology.