Training program
Project Setup and Configuration
- Preparing the development environment
- Creating a project based on Node.js/TypeScript
- Overview of `package.json` and available configuration options
TypeScript — Refresher
- Variables, data types, and scope
- Loops and conditional statements
- Functions and objects
- Asynchronous programming, Promises, and Async/Await
- Functional vs object-oriented programming
- Complex types, interfaces, and type guards
- Enumerations
- Generic types
Introduction to Playwright
- Overview of the Playwright framework
- Installation and configuration
- First run
- Locators vs selectors
- Actions — interacting with webpage elements
- Handling navigation, iframes, and popups
- Test structure
- Assertions — validating page content and expected results
- Running test suites and creating custom configurations
Playwright — Advanced Features
- Page Object Model
- Visual assertions
- Generating screenshots and video recordings
- Debugging tests in UI mode
- Report generation
- Simulating keyboard interactions
- Multi-browser support
- File upload and download handling
- API mocking
- Session management and browser authentication
Tools and Best Practices
- Organizing test code
- Defining environments and global variables
- Automating code quality checks
Summary
- Q&A session
- Best practices recap
- Next steps for learning Playwright