Playwright Retries and Flaky Tests: Detect, Debug and Fix Them
Configure Playwright retries, understand flaky results, detect unstable tests with repeat-each, debug with traces, and fix the most common causes of flakiness.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Configure Playwright retries, understand flaky results, detect unstable tests with repeat-each, debug with traces, and fix the most common causes of flakiness.
Organize Playwright tests: group with test.describe, tag with @smoke and @regression, filter with --grep and --grep-invert, config projects and serial mode.
Learn Playwright hooks: beforeEach, afterEach, beforeAll and afterAll, scope with describe, execution order, testInfo, and when to use hooks vs fixtures.
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 async and await: async functions, awaiting promises, try/catch error handling, sequential vs parallel awaits, loops and Playwright patterns.
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.
Take free timed mock tests with answers and explanations.