DEV Community

hambalee
hambalee

Posted on

Install Playwright and Visual Studio Code

Playwright is a tool that can automate tasks on the web. It works with multiple browsers, so you can use it to test your website or app on different browsers. It can also be used to scrape data from websites or monitor website performance.

Visual Studio Code is a code editor that makes it easy to write code for Playwright. It has a lot of features that can help you write code more efficiently, such as syntax highlighting and code completion.

Install JavaScript Runtime
Node.js

Install Visual Studio Code
https://code.visualstudio.com

mkdir playwright to create a new directory

Installing Playwright
https://playwright.dev/
npm init playwright@latest

Running the Example Test
npx playwright test

or run with UI mode
npx playwright test --ui

HTML Test Reports
npx playwright show-report

Top comments (0)