Playwright Beginner Tutorial - How to Write Your First Test
Offered By: Automation Step by Step via YouTube
Course Description
Overview
Learn how to write your first test using Playwright in this beginner-friendly tutorial. Create a new file, add the necessary modules, and understand the structure of a Playwright test. Explore the test and expect functions provided by Playwright for declaring tests and writing assertions. Gain hands-on experience by creating a test block that navigates to Google and verifies the page title. Understand key concepts like async/await and promises in the context of Playwright testing. Conclude with capturing a screenshot of your first successful 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
Related Courses
Continuous Delivery & DevOpsUniversity of Virginia via Coursera Create Your First Automation Script Using Selenium and Java
Coursera Project Network via Coursera Data-Driven Testing (via Excel sheet) with Selenium & TestNG
Coursera Project Network via Coursera The Complete Core Java Course : Learn to Code
Udemy Selenium WebDriver & Java - Automation with Selenium [2020]
Udemy