
Playwright: Python vs TypeScript, What Actually Differs - Maciej Kusz
Om avsnittet
In this episode, I talk with Maciej Kusz, program chair of the Testwarez conference in Poland, about why Playwright doesn't have to mean TypeScript. Maciej has been using Playwright with Python for years and shows that Python testers can leverage the framework just as effectively—if they know which PyTest plugins to use and where the documentation actually lives. We dig into the practical trade-offs: what TypeScript does better out of the box, where Python offers more flexibility for QA work beyond the browser, and why stable tests are surprisingly easier to achieve in Python's synchronous world.
"Python by default is a synchronous language. You don't have this await, async and so on stuff that you have on the JavaScript and TypeScript stuff." - Maciej Kusz
With 17 years of experience as a QA and 14 years of test automation (Python and recently TypeScript), Maciej Kusz has been testing UI, API, IoT and has been a test lead and architect, mentor and keynote speaker. He is also a co-creator of the SlonzaczQA meetup and was part of the program committee of ConSelenium/Tada and TestWarez. He is also part of Polish Quality Retreat and shares his knowledge in his blog. After hours he is creating an open-source project called MkDocs Publisher, doing some DIY, and playing with 3D printing.
Highlights:
- Playwright's Python version uses PyTest as its test runner rather than a built-in runner, which means documentation for test execution lives separately in the PyTest docs, not in the Playwright docs.
- Visual regression testing is built into the TypeScript version of Playwright but only possible in Python through external, often poorly maintained libraries; Electron desktop apps and web components can only be tested with TypeScript.
- Python's synchronous-by-default behavior removes the async/await complexity present in TypeScript, making test debugging more straightforward without requiring a dedicated IDE plugin.
- Playwright gained ground over Selenium primarily because of built-in auto-waits, integrated tooling like CodeGen and Trace Viewer, and automatic browser version management tied to the framework version.
📘 Tool migration ahead? Teamscale playbook: migrate only 20% of tests, keep nearly all bug detection. Download for free
Software Testing Unleashed - QA, DevEx & Quality Engineering med Richard Seidl | Software Development & Testing Expert finns tillgänglig på flera plattformar. Informationen på denna sida kommer från offentliga podd-flöden.