Playwright has become one of the main tools for testing web applications. In this packed 1-day intro, we'll learn how we can use it to automate and test web UI.
We'll see how to write, run and debug Playwright tests. We'll go over locators and expectations, the building blocks of Playwright, and also talk about the async aspect of the operations. We'll talk about refactoring the tests using the Page Object Model, and also see how we can use it for API testing.
On top of that, we'll discuss where Playwright fits into the testing work - what types of tests fit Playwright more, and when they can be replaced with simpler tests. We'll also see how to run the tests in CI environment.
The exercises will be in JavaScript and Python. Attendees will download the exercise from GitHub before the session start.
Watch an overview video from Gil here!Prerequisites & Tutorial Setup:- Basic understanding of programming language you're going to use and how to setup
- Basic understanding on test automation
- The examples and exercises are in TypeScript/JavaScript.
- Attendees need a laptop, an IDE (like VS Code), with node/npm installed.
- We'll be using either Edge or Chrome as a browser. Please make sure you have one installed:
Key Takeaways:- How to write Playwright tests with navigation, locators and expectations.
- How to plan tests and scenarios
- How to debug tests