Call 0917 798 1811 | Email hello@ivtstechnology.asia
About the Course
Playwright - test automation framework developed by Microsoft. Modern, highly customizable and reliable. This class covers all fundamental concepts of the framework. We begin from scratch, starting with setup and configuration and then a hands-on framework overview to familiarize yourself with the environment. Then from lesson to lesson, we slowly increase complexity. All lessons have a logical progression and are connected. The next lesson in the section builds up a new concept on top of what was learned in the previous lesson. This is also related to the code demonstrated in the class. We will have two test applications, and slowly over the course will add more and more code uncovering new
topics.
What you will learn
How to install Playwright from scratch as a new independent project or add to an existing front-end application project.
JavaScript Fundamentals in case you are a beginner to programming.
How to run tests using the command line interface, UI mode, Playwright extension, and debug tests.
How to organize tests, structure tests, use test hooks.
HTML terminology, locator syntax rules, and Playwright best practices to locate web elements.
Different types of assertions, how auto-waiting concept works, and how to configure different timeouts.
How to work with different UI components, such as input fields, radio buttons, checkboxes, lists, tooltips, dialog boxes, date pickers, web tables, iFrames, sliders, drag and drop.
What is the Page Object Model. How to organize test framework code with Page Objects. Recommended architecture for Page Object model with Playwright.
How to work with APIs: API mocking, API requests, intercept API calls, shared storage state, API authentication.
Multiple advanced topics: fixtures, global setup and teardown, parallel execution, test tags, test retries, visual testing, mobile device emulation, reporters, environment variables, and test execution in Docker container.
Prerequisites
Basic Typescript knowledge is required. Typescript Fundamentals section is included in the class.
HTML and CSS.
Target Audience
Quality Engineers who willing to pick up a first test automation framework.
SDETs and Automation Engineers who is transitioning from other frameworks to the Playwright.
Developers who what quickly understand Playwright best practices and framework capabilities.
Playwright beginners to learn this tool faster.
Course Outline
Introduction to Playwright
Quick introduction to the class, what will be covered in, and how to work with this class.
Comparison of the main features of Playwright and Cypress frameworks.
Configuration of development environment, installation of needed components to follow the class:
VS Code installation configuration.
Git Installation.
Node.js installation.
Typescript Fundamentals
Overview.
Environment setup.
Static typing.
Common basic Types.
Custom data types.
Functions.
Typescript OOP:
Classes.
Access modifiers.
Interfaces.
Generics.
Modules.
Writing your First Playwright
Playwright installation.
Using CLI.
Using User interface.
Trace view and debug.
Tests structure.
Hooks and control flow.
Interaction with Web Elements
Document Object Model.
Locator syntax rules.
User-facing locators.
Child elements.
Parent elements.
Reusing locators.
Extracting values.
Assertions.
Auto-waiting.
Timeouts .
Automating with UI components
Input fields.
Radio buttons.
Checkboxes.
List and dropdowns.
Tooltips.
Dialog boxes.
Tables.
Datepicker.
Sliders.
Drag and drop with iFrames.
Organizing with Page Object Model
What is POM?
Navigation page object.
Locators in page object.
Parameterized modules.
Date picker page object.
Page object manager.
Page object helper base.
Automating API testing
What is API and setting up API?
Mocking API.
Modify API response.
Perform API request.
Intercept Browser API response.
Sharing authentication state.
API authentication.
Advance Concepts
a. NPM and CLI commands.
b. Test data generation.
Test retries.
Parallel execution.
Screenshots and videos.
Environment variables.
Configuration file.
Fixtures.
Project setup and teardown.
Global setup and teardown.
Test tags.
Mobile device emulator.
Reporting.
Integration with Docker and container.
Integration with GitHub Actions for CI/CD.