How to detect broken links with Playwright Test

Описание к видео How to detect broken links with Playwright Test

Join Stefan Judis in this Playwright tutorial, where he explores detecting broken links using Playwright and/or Checkly. Stefan covers essential techniques such as soft assertions, crafting custom error messages for clearer debugging, and using page context-aware requests to check for URL status codes.

Whether you're dealing with empty links, nonexistent domains, or 404 errors, this video provides all the tools needed to enhance your testing strategy effectively.

Example code: https://github.com/checkly/playwright...
Blog post: https://www.checklyhq.com/blog/how-to...
Checkly Synthetic Monitoring: https://www.checklyhq.com/product/syn...

0:00 Intro
0:23 Basic setup
1:43 How to extract link URLs using Playwright
4:17 How to keep your test running with Playwright's soft assertions
6:29 How to make requests using `page.request`
7:41 How to add custom assertion messages
8:41 Final test run with a real page
9:11 The difference between user-first and CSS locators
10:00 Use Playwright for synthetic monitoring
10:44 Closing

#checkly #playwright #syntheticmonitoring

Комментарии

Информация по комментариям в разработке