Rayrun
← Back to videos

Code-first Playwright intro tutorial on macOS (install to first script)

A Playwright intro tutorial that aims at getting you started writing Playwright code as quickly as possible.

In this video tutorial, the speaker provides a step-by-step guide on getting started with Playwright on macOS.

The tutorial begins with the installation of Node.js, specifying that the LTS version should be downloaded. Once Node.js is installed, the speaker demonstrates how to create a folder and initialize a Node project using npm init. To use Playwright, the speaker installs it as a dev dependency using npm i.

Next, the speaker creates a new file called login.js where they will write their first Playwright script. The purpose of the script is to simulate testing the login functionality of a website. The speaker navigates to the login page and enters a user email and password using the page.type function. They click on the login button and wait for the login confirmation message before concluding the script.

Throughout the tutorial, the speaker explains the code they are writing and provides helpful tips and warnings. They emphasize the importance of not using long wait times in production scripts and recommend relying on Playwright's built-in waiting mechanisms instead.

The speaker concludes the tutorial by suggesting further resources to explore, including the Playwright documentation and the Danube Store website, where users can practice writing more complex Playwright scripts.

Related Videos

#16 - ARIA and how Playwright is making use of it to identify UI controls?
#16 - ARIA and how Playwright is making use of it to identify UI controls?
Create feature, steps & config | Playwright & Cucumber - Typescript | Part 1
Create feature, steps & config | Playwright & Cucumber - Typescript | Part 1
Working with multiple elements in Playwright Test (NodeJS)
Working with multiple elements in Playwright Test (NodeJS)
Element Handle VS Locator API | Playwright Tutorial - Part 47
Element Handle VS Locator API | Playwright Tutorial - Part 47
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.