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.
Prerequisites:- Basic understanding of programming language you're going to use and how to setup
- IDE + language installed
- Package installer (npm, pip, etc.)
- Basic understanding on test automation
Key Takeaways:- How to write Playwright tests with navigation, locators and expectations.
- How to plan tests and scenarios
- How to debug tests