You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript or Javascript languages are intended for use with this extension.
Getting Started
This Visual Studio Code extension adds predefined useful code snippets for 🎭 Playwright.
Used tools
playwright - Playwright is a Node.js library to automate tests cases for various browsers.
@playwright/test - Playwright Test provides a test function to declare tests and expect function to write assertions.
playwright-core - This package contains the no-browser flavor of Playwright.
Requirements
Visual Studio Code (VS Code) version 1.80.0 or higher.
Installation
Open Visual Studio Code.
Go to Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or using the keyboard shortcut Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac).
Search for "Playwright Snippets Suite" in the Extensions view search box.
Click on the Install button to install the extension.
Reload Visual Studio Code to enable the extension.
Usage
Open a JavaScript or TypeScript file in Visual Studio Code.
Start typing one of the predefined snippets (e.g., p-) to trigger the code snippet suggestion.
Select the desired snippet from the suggestions list, or press Tab to insert the snippet directly.
Replace placeholders (if any) with your custom test code.