Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Playwright Beginner Tutorial - Assertions

Automation Step by Step via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to implement assertions in Playwright for effective test automation. Explore various assertion techniques including checking element presence, visibility, enabled/disabled status, text matching, attribute verification, and visual validation. Discover how to use soft assertions, validate page URLs and titles, and perform screenshot comparisons. Practice these concepts using a demo application and gain hands-on experience with Playwright's assertion capabilities for robust automated testing.

Syllabus

*Intro*
*What are Assertions*
*Assertions in Playwright*
*How to add Assertions*
*Create a new Test*
*Demo App* https://kitchen.applitools.com/
*Command to Run the test*
*Check element Present/Not present*
*Check element Visible/Hidden*
*Check element Enabled/Disabled*
*How to add Soft Assertions*
*Check element Text matches value or not*
*Assert Element attribute *
*Screenshot Moment*
*Check Url of the page*
*Check Title of the page*
*Check Page matches screenshot* Visual Validation
*Screenshot Moment | Outro*

Taught by

Automation Step by Step

Reviews

Start your review of Playwright Beginner Tutorial - Assertions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.