Agent skill · software engineering · aiskillstore
playwright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Why this skill is useful
Adds specific commands and workflows for browser automation that the AI wouldn't reliably generate on its own.
What it needs
Requires playwright installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
<!-- Adapted from the "playwright-cli" skill in the Microsoft Playwright CLI project (https://github.com/microsoft/playwright-cli), Copyright (c) Microsoft Corporation, licensed under the Apache License, Version 2.0. Modified by ScreenCI. Full license and attribution: see THIRDPARTYNOTICES.md and licenses/microsoft-playwright-cli-APACHE-2.0.txt in the screenci package. --> Browser Automation with playwright-cli Use playwright-cli to inspect a live page and discover the real flow, stable selectors, and cookie/consent steps before authoring a ScreenCI .screenci.ts script. It drives a real browser from the CLI: navigate, snapshot, click, type. When Inspecting Pages For ScreenCI After the first navigation and snapshot, check whether a cookie consent or cookie policy banner appeared. Identify the exact accept action the video script should use inside its initial hide() block, preferably a stable locator such as getByRole('button', { name: /accept accept all allow all agree ok/i }). If multiple consent actions exist, prefer the clear accept/allow action over a dismiss-only or settings action. Report that cookie-consent click as part of the hidden initial setup, not as a visible demo step. Quick start Core commands Navigation Snapshots After each command, playwright-cli provides a snapshot of the current browser state. You can also take a snapshot on demand. Options can be combined. The global --raw option strips page status and generated code, returning only the result value. Use it to pipe output into other tools. Targeting elements By default, use refs from the snapshot to interact with page elements. You can also use css selectors or Playwright locators. Browser Sessions Installation If global playwright-cli is not available, try a local version: Otherwise install it globally: Example: Form submission </content>
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/playwright-cli--b9b230