AI, Data Science & Cloud Certificates from Google, IBM & Meta
Get 20% off all career paths from fullstack to AI
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial demonstrates how to create a Playwright test file, import the testing module, define a test block, navigate to Google, and assert its page title. It also introduces JavaScript async and await keywords used in the test.
Syllabus
Intro
Step 1 - Create a new file under test folder
Step 2 - Add module ‘playwright/test’
Example how to add and import modules
Playwright Test provides a test function to declare tests and expect function to write assertions
Step 3 - Create a test block - testtitle, testFunction
Screenshot moment
Taught by
Automation Step by Step