Playwright
Also called: Playwright Test
A free, popular tool for automating web tests in Chromium, Firefox and WebKit browsers.
Definition
Playwright, made by Microsoft, drives real browsers from test code (usually TypeScript or JavaScript). It waits for elements automatically, can record tests with its codegen recorder, and produces reports with screenshots, videos and traces of every step. Cypress and Selenium are other common web tools; Appium and Maestro are common for mobile.
In practice
A failed Playwright run includes a trace you can step through to see the page and network calls at the moment the test broke.
Learn it in context
Lessons that use this term.
Related terms
- Test automationUsing scripts to run test steps and check the results without a person doing it by hand.
- LocatorThe way an automated test finds an element on the screen, such as a button or a field.
- AssertionThe line in an automated test that checks the expected result and fails the test if it's wrong.
- Flaky testA test that sometimes passes and sometimes fails without any change to the code.