playwright
Installation
SKILL.md
Playwright
Playwright is Microsoft's modern automation library. It enables reliable end-to-end testing for modern web apps across Chromium, WebKit, and Firefox.
When to Use
- Modern Web End-to-End Automation: The industry standard for cross-browser testing across Chromium, WebKit (Safari), and Firefox.
- Multi-Tab & Multi-Origin Testing: Testing complex workflows spanning popups, payment gateways, and multiple browser tabs seamlessly.
- Mobile Emulation & Geolocation: Simulating iPhone, Pixel, network throttling, and geographic permissions reliably.
- API Testing Alongside UI: Sending REST and GraphQL requests directly within tests via
requestcontext.
Quick Start
import { test, expect } from "@playwright/test";