DEV Community

hambalee
hambalee

Posted on

1

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)

Image of Stellar post

Check out Episode 1: How a Hackathon Project Became a Web3 Startup 🚀

Ever wondered what it takes to build a web3 startup from scratch? In the Stellar Dev Diaries series, we follow the journey of a team of developers building on the Stellar Network as they go from hackathon win to getting funded and launching on mainnet.

Read more