Playwright is a fantastic new open source web testing framework from Microsoft. With Playwright, you can automate tests for web apps and REST APIs that run on multiple browsers without flaky failures. It’s a nice, modern alternative to Selenium WebDriver, and you can use Playwright in plain-old Python!
In this concise 10-minute quickstart, we’ll learn how to configure a Python project with Playwright and pytest, automate a basic web search engine test, and run it against different browsers. You’ll be able to add more tests to our starter project on your own after the talk! All example code with full instructions will be shared here: https://github.com/AutomationPanda/playwright-python-tutorial.
Andrew Knight, also known as “Pandy,” is the Automation Panda. He’s a software testing and automation champion who loves to help people build better quality software. In the past, he’s built large-scale test automation projects that run continuously and reliably. Currently, Pandy is a Developer Advocate at Applitools, where he helps folks do the best visual testing they can. He is also Director of Test Automation University, which offers a multitude of free courses on software testing from the world’s leading instructors. On the side, Pandy is writing a book on software testing, and he also leads development for Boa Constrictor, the .NET Screenplay Pattern. Check out his tech blog at AutomationPanda.com, and follow him on Twitter at @AutomationPanda.