playwright - Browser automation with persistent state for testing and web interaction
Browser automation scripts for testing, screenshots, and web interaction with persistent state between commands
Tags
Updated: 2026-02-13Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Navigate to web pages
- Go back in browser history
- Go forward in browser history
- Take HTML snapshots
- Click page elements
- Hover over elements
- Type text into fields
- Select dropdown options
- Press keyboard keys
- Fill web forms
- Wait for specified time
- Wait for page elements
- Take screenshots of pages
- Save web pages as PDF
- Run JavaScript evaluations
- Close browser sessions
- Generate test scripts
Inputs
- Target URLs
- Element references
- Text input
- Dropdown values
- Keyboard keys
- Form data in JSON
- Waiting time in milliseconds
- CSS selectors
- File names for output
- JavaScript code
Outputs
- Browser navigation
- Element references in snapshot
- Interaction actions
- Screenshot files
- PDF documents
- Test scripts
- JavaScript evaluation results
- JSON response data
Requirements
- Node.js runtime environment
- npm package manager
- Playwright browsers installed
- Single browser instance constraint
- Visible browser window (not headless)
- Reference system for element tracking
