Highlights
- Introduction to Playwright and comparison with other test automation tools
- Project setup, configuration, and visual test tools
- Writing, running, and analysing your first automated test
- Using selectors, locators, and interacting with page elements
- Handling clicks, drags, hovers, and form inputs
- Testing dynamic single-page applications (SPAs) and waiting strategies
- Working with asynchronous API requests and simulating responses
- Managing cookies and user sessions
- Cross-browser test configuration and execution
- Running tests in parallel from the command line
- Configuring and managing distributed test reports
- Best practices from real-world Playwright testing teams
Delivery Format: The course is delivered over two days and includes hands-on exercises throughout to reinforce learning and build practical confidence.
Course Details
Introduction to Playwright
- What is Playwright?
- Comparison with other test automation tools.
- Playwright for Testers and Developers.
- Required JavaScript/TypeScript basics.
Installation and Configuration
- Project setup for Playwright.
- Visual tools (“clicking through” tests).
- Test generators – automation.
Automated Testing
- Writing your first test.
- Running the test and analyzing the results.
- Best practices in testing.
Basic Playwright Functions
- Loading a webpage for testing.
- Page navigation.
- Using selectors and locators to identify elements.
- Interacting with page elements.
- Handling clicks, drags, hovers.
- Handling forms.
- Assertions – verifying content on the page.
- Injecting test code into the application.
Handling Dynamic SPA Applications
- Testing dynamic components.
- Waiting for elements to load.
- Testing navigation between views.
- Controlling browser history in SPAs.
Working with Asynchronous API Requests
- Testing asynchronous API requests.
- Simulating and controlling API responses.
Real-world Playwright Usage Scenarios
- Examples of Playwright use in real projects.
- Best practices and experiences from testing teams.
Managing User Sessions
- Adding, removing, and managing cookies.
- Working with user sessions.
Cross-browser Testing
- Configuration and execution of cross-browser tests.
Running Tests from the Command Line
- Running tests in parallel.
Reporting
- Configuration and management of distributed tests.
Who should attend
- Developers with basic knowledge of JavaScript or TypeScript who want to automate the testing of web applications.
- QA Engineers aiming to streamline testing processes with Playwright’s fast, reliable, and scalable capabilities.
- Test Automation Engineers looking to enhance their skills in modern test automation tools.
- Full-stack Developers interested in improving the quality of their applications through automated cross-browser testing.
- Manual Testers wanting to transition into automated testing to speed up and optimize their workflow.
- Team Leads and Managers seeking to implement Playwright for faster, more efficient test automation within their teams.
Feedback
4.8 out of 5 average
"Our tailored course provided a well rounded introduction and also covered some intermediate level topics that we needed to know. Clive gave us some best practice ideas and tips to take away. Fast paced but the instructor never lost any of the delegates"
Brian Leek, Data Analyst, May 2022
“JBI did a great job of customizing their syllabus to suit our business needs and also bringing our team up to speed on the current best practices. Our teams varied widely in terms of experience and the Instructor handled this particularly well - very impressive”
Brian F, Team Lead, RBS, Data Analysis Course, 20 April 2022