Playwright is an open-source browser automation and testing framework that Microsoft released in 2020. A single API controls Chromium, Firefox, and WebKit browsers, with libraries for JavaScript and TypeScript, Python, Java, and .NET.
It is mainly used for end-to-end testing of web applications, and because it can script actions such as navigating, clicking, typing, and taking screenshots, it is also used for web scraping and for browser control by AI agents. It also ships with command-line tools.