Visual Regression Testing in Playwright with toHaveScreenshot
Visual regression testing in Playwright: toHaveScreenshot, baselines, updating snapshots, tolerances, masking dynamic content and consistent results in CI.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Visual regression testing in Playwright: toHaveScreenshot, baselines, updating snapshots, tolerances, masking dynamic content and consistent results in CI.
Take screenshots and record videos in Playwright: full page, element, masking, attaching to the HTML report, and automatic screenshots and videos on failure.
Learn Playwright codegen: record tests, pick locators, add assertions, useful options, record logged in, VS Code recording, and refactoring recorded code.
Master Playwright actions with TypeScript: click options, fill vs pressSequentially, keyboard keys, checkboxes, hover, drag, scroll and reading values.
Use CSS selectors and XPath in Playwright: cheat sheets, XPath axes, table examples, chaining and filters, shadow DOM, and when to choose CSS or XPath.
Learn JavaScript Promises and async/await for Playwright: promise states, then/catch, try/catch, Promise.all, and the async mistakes that cause flaky tests.
Playwright CLI commands: run a specific test or file, filter by tag, choose browsers, headed and UI mode, debug, retries, reports and npm scripts.
playwright.config.ts explained: timeouts, workers, retries, reporters, baseURL, screenshots, video, trace, projects and webServer, with a full example.
Write your first Playwright test in TypeScript: test anatomy, a real login test, running it headed or in VS Code, reading failures and the HTML report.
Install Playwright with TypeScript step by step: Node.js, VS Code, npm init playwright, running sample tests, the VS Code extension and common errors.
What is Playwright? A beginner guide to its features, architecture, browser vs context vs page, supported browsers and languages, and limitations.
Learn how to handle alerts, confirm and prompt dialogs, new tabs and popups, dropdowns, iframes, file uploads, hover and drag and drop in Playwright with runnable TypeScript examples.
Take free timed mock tests with answers and explanations.