Opleiding: Playwright Test Automation

In the course Playwright Test Automation from SpiralTrain, participants learn to use the Microsoft Playwright Framework to automatically test the UI of modern web applications.

Intro Playwright

The course starts with an introduction to Playwright, a modern web testing tool. It compares Playwright with Selenium and Cypress, explains how to install it, and demonstrates browser contexts, auto-waiting, introspection events, and web-first assertions. Participants also learn about Playwright Inspector, multi-language support, and using the tool efficiently.

Writing Tests

In this module, participants learn how to write tests using Playwright’s syntax and structure. The difference between using the test library and raw API is discussed. Various locator strategies including CSS, XPath, and role-based locators are explained. The module also covers writing assertions, using the trace viewer, and debugging with VS Code.

UI Interactions

This module focuses on simulating user interactions such as button clicks, text inputs, and handling checkboxes and dropdowns. It also covers modal dialogs, alerts, pop-ups, file uploads, and working with multiple browser contexts and network requests.

Fixtures and Hooks

Participants learn what fixtures are and how to use them to set up a consistent test environment. Built-in and custom fixtures are covered, including overriding fixtures and using setup and teardown. The module also explains the differences between fixtures and hooks like beforeEach and afterEach.

API Testing

This module teaches participants how to perform API testing with Playwright. They will make GET, POST, PUT, and DELETE requests, insert headers, and validate JSON payloads and response codes. It also covers combining API and UI tests, parallel execution, and testing authentication flows.

Advanced Topics

The course concludes with advanced topics such as test parameterization, using CSV files, passing environment variables through .env files, and managing timeouts and retries. Participants also learn to generate test reports and snapshots and perform visual regression testing.

Audience Course PlayWright Test Automation

The course PlayWright Test Automation is intended for testers, developers and QA engineers who want to use PlayWright for end-to-end testing of web applications.

Prerequisites PlayWright Test Automation

Basic knowledge of programming in for example JavaScript, TypeScript or Python. Some experience with test automation is beneficial for understanding.

Realization Training PlayWright Test Automation

Demos and case studies led by the trainer are interchanged with presentations and practical exercises.

Certificate PlayWright Test Automation

After successfully completing the course, participants will receive a certificate of participation in PlayWright Test Automation.

Modules

Module 1: Intro Playwright

  • What is Playwright?
  • Comparison with Selenium
  • Comparison with Cypress
  • Installing Playwright
  • Browser Contexts
  • Waiting for Elements
  • Auto Wait
  • Introspection Events
  • Language Bindings
  • Playwright Inspector
  • Web-First Assertions

Module 2: Writing Tests

  • Test Syntax and Structure
  • Test versus Raw API
  • Out of Process Running
  • Locating Elements
  • CSS Locators
  • XPath Locators
  • Role-based Locators
  • Page Interactions
  • Writing Assertions
  • Trace Viewer
  • VS Code Debugger

Module 3: UI Interactions

  • Page Interactions
  • Button Clicks
  • Text Insertions
  • Check and Radio Buttons
  • Working with Dropdowns
  • Modal Dialogs
  • Handling Alerts
  • Handling Pop-Ups
  • Multiple Browser Contexts
  • Handling File Uploads
  • Network Requests

Module 4: Fixtures and Hooks

  • What are Fixtures?
  • Establish the Environment
  • Built-in Fixtures
  • Benefits of Fixtures
  • Custom Test Fixtures
  • Overriding Fixtures
  • Setup and Teardown
  • Differences with Hooks
  • BeforeEach Hook
  • AfterEach Hooks

Module 5: API Testing

  • Making API Requests
  • GET and POST Requests
  • PUT and DELETE Requests
  • Validating Response Codes
  • Inserting Request Headers
  • Validating JSON Payloads
  • Validating Response Codes
  • Combining API and UI Testing
  • Parallel Execution
  • Authentication Testing

Module 6: Advanced Topics

  • Test Parameterization
  • Tests via CSV files
  • Passing Environment Variables
  • .env Files
  • Handling Timeouts
  • Failures and Retries
  • Test Reports
  • Generating Snapshots
  • Comparing Snapshots
  • Performing Visual Regression
Meer...
€1.499
ex. BTW
Aangeboden door
SpiralTrain
Onderwerp
Software Testing
Niveau
Duur
2 dagen
Looptijd
12 dagen
Taal
en
Type product
cursus
Lesvorm
Klassikaal
Aantal deelnemers
Max: 12
Tijdstip
Overdag
Tijden en locaties
Amsterdam
ma 10 aug. 2026
Eindhoven
ma 10 aug. 2026
Houten
ma 10 aug. 2026
Rotterdam
ma 10 aug. 2026
Utrecht
ma 10 aug. 2026
Zwolle
ma 10 aug. 2026
Amsterdam
ma 12 okt. 2026
Eindhoven
ma 12 okt. 2026
Houten
ma 12 okt. 2026
Rotterdam
ma 12 okt. 2026
Utrecht
ma 12 okt. 2026
Zwolle
ma 12 okt. 2026
Amsterdam
ma 14 dec. 2026
Eindhoven
ma 14 dec. 2026
Houten
ma 14 dec. 2026
Rotterdam
ma 14 dec. 2026
Utrecht
ma 14 dec. 2026
Zwolle
ma 14 dec. 2026
Amsterdam
ma 15 feb. 2027
Eindhoven
ma 15 feb. 2027
Houten
ma 15 feb. 2027
Rotterdam
ma 15 feb. 2027
Utrecht
ma 15 feb. 2027
Zwolle
ma 15 feb. 2027
Amsterdam
ma 12 apr. 2027
Eindhoven
ma 12 apr. 2027
Houten
ma 12 apr. 2027
Rotterdam
ma 12 apr. 2027
Utrecht
ma 12 apr. 2027
Zwolle
ma 12 apr. 2027
Amsterdam
ma 14 jun. 2027
Eindhoven
ma 14 jun. 2027
Houten
ma 14 jun. 2027
Rotterdam
ma 14 jun. 2027
Utrecht
ma 14 jun. 2027
Zwolle
ma 14 jun. 2027
Amsterdam
ma 9 aug. 2027
Eindhoven
ma 9 aug. 2027
Houten
ma 9 aug. 2027
Rotterdam
ma 9 aug. 2027
Utrecht
ma 9 aug. 2027
Zwolle
ma 9 aug. 2027
Amsterdam
ma 11 okt. 2027
Eindhoven
ma 11 okt. 2027
Houten
ma 11 okt. 2027
Rotterdam
ma 11 okt. 2027
Utrecht
ma 11 okt. 2027
Zwolle
ma 11 okt. 2027
Amsterdam
ma 13 dec. 2027
Eindhoven
ma 13 dec. 2027
Houten
ma 13 dec. 2027
Rotterdam
ma 13 dec. 2027
Utrecht
ma 13 dec. 2027
Zwolle
ma 13 dec. 2027
Amsterdam
ma 14 feb. 2028
Eindhoven
ma 14 feb. 2028
Houten
ma 14 feb. 2028
Rotterdam
ma 14 feb. 2028
Utrecht
ma 14 feb. 2028
Zwolle
ma 14 feb. 2028
Amsterdam
ma 10 apr. 2028
Eindhoven
ma 10 apr. 2028
Houten
ma 10 apr. 2028
Rotterdam
ma 10 apr. 2028
Utrecht
ma 10 apr. 2028
Zwolle
ma 10 apr. 2028
Keurmerken aanbieder
NRTO
UWV scholingsvoucher