playwright-skill

Automates browser testing and web interaction using Playwright scripts with dev-server detection.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill playwright-skill-anderhonorato
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-skill
Source: https://github.com/AnderHonorato/Mem-rias-IA---Infinity/tree/main/Manus/Skills/snapshots/lackeyjb-playwright
Command: npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill playwright-skill-anderhonorato

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright.

What problem does it solve? Manually testing websites, validating UI behavior, and automating repetitive browser tasks is slow and error-prone. This Skill writes and executes Playwright scripts to automate browser interactions, capture screenshots, and validate web functionality without manual clicking. ## Core Features & Use Cases - Browser Automation: Write and run Playwright scripts for navigation, form filling, login flows, link checks, and arbitrary web interactions across Chromium, Firefox, and WebKit. - Dev-Server Detection & Helpers: Automatically detect running localhost servers, dismiss cookie banners, inject custom HTTP headers, and capture timestamped screenshots via built-in helper functions. - Responsive & UX Validation: Capture full-page screenshots at multiple viewports (desktop, mobile) and verify post-login pages, headings, and URLs with web-first assertions. - Use Case: Ask the agent to verify that your local app's login flow works: it detects the dev server on port 3000, fills in test credentials, submits the form, waits for the dashboard, and saves a screenshot as evidence. ## Quick Start Use the playwright skill to open my local app, log in with my test credentials, and take a screenshot of the dashboard.

Frequently Asked Questions about playwright-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser testing with Playwright?

Write a JavaScript file using Playwright's chromium API to launch a browser, navigate to a URL, and interact with page elements via locators like getByRole and getByLabel. Run the script with the skill's run.js executor, which handles module resolution and script preservation.

How to test a login flow with Playwright?

Navigate to the login page, fill email and password fields using getByLabel, click the sign-in button with getByRole, then wait for the dashboard URL and verify a post-login heading. Always use test credentials supplied by the user, never real ones.

Does Playwright support Firefox and WebKit browsers?

Yes, Playwright supports Chromium, Firefox, and WebKit. Set the PW_BROWSER environment variable to firefox or webkit, and run the install-all-browsers npm script to download all three browser binaries.

Can Playwright connect to an existing Chrome session?

Yes, start Chrome with remote debugging enabled and connect using chromium.connectOverCDP pointing at the debugging port. This reuses the session's cookies and extensions, but should not be used for secrets unless explicitly requested.

Why does my Playwright script fail with element not found errors?

Element not found errors usually occur when the element is inside an iframe, not yet visible, or the selector is fragile. Prefer role-based locators, use web-first assertions or locator waitFor instead of fixed sleeps, and avoid networkidle heuristics.