
Learn automated testing by watching on-demand, self-paced videos, coding along, and practicing to troubleshoot and fix errors using provided code samples.
Discover Playwright, a fast, reliable end-to-end testing framework with features like auto-weighting and parallel test execution, supporting Chromium, Firefox, and WebKit, and compare it to Selenium and Cypress.
Playwright is an open-source end-to-end testing framework by Microsoft that automates browsers to test web apps, supporting Chromium, Firefox, and WebKit with parallel execution and network interception.
Discover how Playwright enables cross-browser and cross-platform testing across Chromium, WebKit, and Firefox, on Windows, macOS, Linux, with mobile emulation, streamlined debugging, and automation.
Explore how Playwright delivers fast, reliable end-to-end tests by auto-waiting for elements, retrying actions, and running tests in parallel across browsers and headless ci/cd workflows.
Harness full network control in Playwright to create reliable, isolated tests by intercepting requests and mocking API responses with tools like MSW, simulating slow or failed connections.
Discover how Playwright integrates with ci/cd to run end-to-end tests, handling multi-tabs, multi-context, and multi-user scenarios, including api and network interception.
Compare Playwright, selenium, and Cypress to help decide the best end-to-end testing framework. Playwright offers cross-browser testing, network interception, and built-in parallelism with minimal setup.
Install Playwright and its dependencies, including Node.js, VS Code, and plugins, on your machine. Then initialize your first project and generate your first test.
Install Node.js and npm to enable Playwright end-to-end testing, verify installations, and configure the environment variables across Mac and Windows setups.
Install Visual Studio Code, initialize a Playwright project in a First Playwright Test folder, and write your first async test with page.goto and expect.
Install the Microsoft Playwright extension, explore the test explorer, and run tests (specific or all) in Chromium, using headed mode to observe execution.
Explore how to create and run your first Playwright test, observe auto-waiting and tracing, debug with screenshots and traces, and configure tests via playwright.config.js for cross-browser end-to-end testing.
Explore the DOM's role in Playwright and master selectors and locators to reliably target elements and simulate user interactions in end-to-end testing.
Explore how the document object model structures every page element as a tree. Learn to locate elements with Playwright selectors like text, data test ID, and CSS selectors.
Learn how Playwright locates elements with selectors (CSS, XPath, text) and how locators add waiting and retry logic for reliable interactions with the DOM.
Learn how Playwright locators interact with selectors to write stable end-to-end tests. Use built-in locators like getByRole, getByText, getByLabel, and getByTestID to create robust, accessible, and maintainable tests.
Explore Playwright locators in end-to-end testing, practice identifying DOM elements with page.locator, getByRole, getByText, placeholder, and more, wiring tests in VS Code.
Master advanced Playwright locators by chaining and filtering to precisely target elements among duplicates, using parent-child selection and text or nested-element criteria to create robust, readable tests.
Master advanced locators in Playwright by building chained selectors and filtering with has and hasText to uniquely locate the second submit button, using beforeEach and robust test architecture.
Build a Playwright project and work confidently with the document object model using locators and actions to interact with web pages.
Before starting this lesson, you need to download the ressource attached. It is a zip file so unzip it before opening it into VS Code.
To open the unzipped file into VS Code, go to File > Open Folder > Select your folder and click open.
You will land on the project in VS Code and ready to start the Lab
Practice end-to-end testing with Playwright by navigating to the login page, registering an account, and validating the register page, landing on the shop page to complete checkout and payment success.
Discover how the page object model centralizes locators and interactions in page objects, enabling cleaner, more maintainable, and scalable test automation and easier handling of UI changes through dry principles.
Explore building a page object model for end-to-end Playwright tests by defining login, shop, and cart pages, linking steps to objects, and executing through VS Code.
Apply the page object model to centralize locators like firstName, reducing maintenance when IDs change; update the Form class once and propagate changes to all tests, speeding fixes.
Learn how page object models encapsulate web page elements into dedicated objects to centralize elements, reduce duplication, and separate actions from tests, improving readability and maintainability in end-to-end tests.
Build and integrate page object models for login, shop, and cart pages using Playwright, creating reusable async methods and dynamic locators to streamline e2e tests.
Explore fixtures in Playwright to streamline test setups, understand what a fixture is, why it matters for large test suites, and how to customize them.
Use fixtures in Playwright to create reusable setups before tests begin, such as authentication, database connections, or browser sessions, and to clean up after tests for a fresh start.
Learn how fixtures in Playwright reduce repetitive setup code, improve test readability and maintainability, and streamline setup and teardown with built-in fixtures like page, context, and browser.
Learn to create and use custom fixtures in an e-commerce project and generate your first playwright fixture in this lab.
Learn to create and use custom fixtures in Playwright, replacing repetitive setup with login page, cart page, and shop page fixtures, and implement teardown for cleaner tests.
Understand cookies, the data that keeps you logged in and preserves shopping carts on modern web apps. Learn to read and set cookies in Playwright to improve automated tests.
Cookies add memory to the stateless http, storing small text data in your browser to remember login status, preferences, and browsing activity for a personalized web experience.
Explore how cookies act as session keys between the browser and server, enabling login persistence, remembered preferences, and cart items, while highlighting secure and http-only cookies.
Explore how cookies power web sessions and risk security through session hijacking, XSS, and CSRF. Discover HTTPOnly, Secure, and SameSite as a triple lock protecting cookies.
Explore managing cookies in Playwright by visiting a clean site, retrieving cookies with the context fixture, adding cookies with addCookies, printing them with console.log, and clearing cookies with ClearCookies.
Explore how artificial intelligence interacts with Playwright via Playwright MCP, enabling AI agents to open browsers, run tests, and inspect failures with natural language commands.
Explore Playwright MCP, the bridge between Playwright and artificial intelligence, and see how an AI agent uses the MCP protocol to run tests, with a hands-on install.
Explore Playwright MCP, a connector that lets an AI act as an agent within Playwright, executing browser actions, validating tests, and reporting results.
An ai agent translates natural language instructions into concrete Playwright actions, observes results, and reports outcomes, bridging human intent with automated browser testing via the MCP protocol.
Discover how the model context protocol (MCP) enables safe, structured communication between an AI agent and Playwright by defining commands, responses, and context for end-to-end tests.
Apply Playwright MCP and AI Agent to a real-life e-commerce scenario, testing login, item filtering, item summaries, and add-to-cart on Sauce Demo; AI generates an exhaustive test plan.
Learn to set up Playwright MCP in a new project, generate an AI-driven test plan for the Sauce Demo site with Copilot, and refine tests using best practices.
Master End-to-End Testing with Playwright – Fast, Reliable, and Scalable Automation for Modern Web Apps
Are you tired of flaky tests and outdated tools slowing down your development workflow? Playwright is your fast track to mastering modern end-to-end testing using Playwright – the powerful open-source framework backed by Microsoft.
Whether you're a frontend developer, QA engineer, or full-stack pro, this course will guide you through building robust, efficient, and maintainable tests using JavaScript. Learn to automate browsers like Chrome, Firefox, and WebKit with ease and precision. From setting up your first test to running complex executions, we’ve got you covered. Fear no more test automation maintenance as i will provide you all the best practices you need to know to create efficient tests with Playwright.
You’ll gain hands-on experience with:
Page object patterns
Learn about Locators and Selectors
Fixtures
Cookie management
Using Playwright MCP using AI and VS Code
By the end of this course, you’ll have the confidence to test real-world applications and integrate testing into your team’s development workflow.
Whether you’re aiming to break into QA automation or upskill in test engineering, Playwright gives you the tools to stand out.
Automation is now smart and fun ! Let's play together
Minimum knowledge in Typescript is appreciated to start this course
Join today and start writing tests that don’t break! Increase your skillset !