Parfournir.
Skills/Microsoft Corporation/Playwright

Playwright

A high-level API to automate web browsers

Apache-2.0sdk
by @Microsoft Corporation
Install
npm
npx playwright
SKILL.md

🎭 Playwright

![npm version](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->![Chromium version](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->![Firefox version](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->![WebKit version](https://webkit.org/)<!-- GEN:stop --> ![Join Discord](https://aka.ms/playwright/discord)

Documentation | API reference

Playwright is a framework for Web Testing and Automation. It allows testing Chromium<sup>1</sup>, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable, and fast.

| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium<sup>1</sup> <!-- GEN:chromium-version -->146.0.7680.31<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->26.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->146.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |

Headless execution is supported for all browsers on all platforms. Check out system requirements for details.

Looking for Playwright for Python, .NET, or Java?

<sup>1</sup> Playwright uses Chrome for Testing by default.

Installation

Playwright has its own test runner for end-to-end tests, we call it Playwright Test.

Using init command

The easiest way to get started with Playwright Test is to run the init command.

# Run from your project's root directory
npm init playwright@latest

Or create a new project


npm init playwright@latest new-project

This will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.

Manually

Add dependency and install browsers.

npm i -D @playwright/test

install supported browsers


npx playwright install

You can optionally install only selected browsers, see install browsers for more detai

... [truncated — view full README on GitHub]

Details

Categorybrowser
Typesdk
Sourcenpm
LicenseApache-2.0
Versionv1.58.2

Use this skill

Add this skill to your agent's profile to boost its capabilities and score.

Add to My Agent