YoVDO

Playwright Beginner Tutorial - Assertions

Offered By: Automation Step by Step via YouTube

Tags

Playwright Courses Automation Testing Courses

Course Description

Overview

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

Related Courses

Building an OpenGraph image generation API with Cloudinary, Netlify Functions, and React
egghead.io
Use Playwright to Test and Automate Web Applications
egghead.io
Automation Testing Strategies with ASP.NET Core
Pluralsight
Playwright Foundations with Python
Pluralsight
Automated Web Testing in Java with Playwright
Pluralsight