Loading...
Loading...
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
npx skill4agent add yusuftayman/playwright-cli-agents playwright-cliBashnpm install -g @playwright/cli@latest# 1. Open a page
playwright-cli open https://example.com
# 2. Capture snapshot (accessibility tree with element refs)
playwright-cli snapshot
# 3. Interact using refs from snapshot
playwright-cli click e15
playwright-cli fill e20 "hello@example.com"
# 4. Re-snapshot to verify state
playwright-cli snapshot| Command | Description |
|---|---|
| Open URL in browser |
| Open in visible browser |
| Close browser |
| Capture accessibility tree with element refs |
| Take screenshot (viewport or element) |
| Full-page screenshot |
| Save page as PDF |
| Command | Description |
|---|---|
| Click element |
| Fill input field |
| Type text sequentially |
| Hover over element |
| Select dropdown option |
| Check checkbox |
| Uncheck checkbox |
| Upload file |
| Drag and drop |
| Command | Description |
|---|---|
| Press key (e.g., |
| Key down |
| Key up |
| Move mouse |
| Mouse button down |
| Mouse button up |
| Command | Description |
|---|---|
| Go back |
| Go forward |
| Reload page |
| Command | Description |
|---|---|
| List tabs |
| Open new tab |
| Close tab |
| Switch to tab |
| Command | Description |
|---|---|
| View console messages |
| View network requests |
| Execute JavaScript |
| Run Playwright code |
| Command | Description |
|---|---|
| Accept dialog |
| Dismiss dialog |
| Command | Description |
|---|---|
| Start trace recording |
| Stop trace recording |
| Start video recording |
| Stop video recording |
| Command | Description |
|---|---|
| Use named session |
| List sessions |
| Stop session |
| Delete session |
playwright-cli snapshot- button "Create Strategy" [ref: e12]
- textbox "Search" [ref: e13]
- grid [ref: e14]
- button "Filters" [ref: e15]refe12playwright-cli.json{
"browser": "chromium",
"headless": false,
"timeout": 30000
}