In the world of software development, test automation is important to ensure quality and frequent delivery of increments sprint after sprint. Recently, I discovered a tool that caught my full attention: Playwright.
I am convinced of its relevance and compatibility in an environment integrating Agile Testing.
What is Playwright?
Playwright is a versatile open-source framework and offers a multitude of features for developers and testers. It is designed for browser testing automation (I used it on the Front).
Advantages of Playwright
Multi-language programming compatibility: JavaScript, TypeScript, Python, .NET, and Java, so there is plenty of choice!
Multi-browser compatibility: Chrome, Firefox, Safari or Edge, you can write a single test that will be tested on all these browsers at once!
Ease of use: Even for novices in development, creating automated user interface tests with Playwright is rather simple. Its intuitive interface makes it easy to handle.
From my side, I developed scenarios after more than 2 years without developing a line of code, the set is relatively accessible and demo files are proposed to us.
Integration with CI/CD tools: Playwright integrates perfectly with continuous testing tools such as Jenkins, Travis CI or GitLab CI, which allows automating tests at every stage of the development process.
Pick Locator: allows you to easily select elements of the DOM (Document Object Model) when writing automated tests. Don’t know what the connection square corresponds to? Hop, in one click we obtain the necessary value for our test.
this.page.getByPlaceholder('Password*');
Record mode: Playwright’s record mode is a very practical feature that allows users to record their interactions with a live web application and automatically generate the corresponding code. This makes it even more accessible and user-friendly than other solutions.
Recorded tests, in photo or video: Playwright is capable of recording tests in the form of videos or screenshots, which can be extremely useful, whether to visualize and understand a bug, or present test cases in Sprint Review for example. This feature can therefore improve transparency and information sharing.
Stimulate Collaboration and Team Spirit
In addition to its relevant features, Playwright can encourage collaboration within teams, by allowing the sharing of test scenarios and integrating user interface tests into the continuous development process.
My Use Case in a Professional Environment
I used Playwright to feed Non Regression Test (TNR). I was in reinforcement on a project in need, therefore little knowledge about the project.
Tests had to be applied both on the front office and the back office of a web application.
Thanks to Playwright, I was able to effectively automate these tests. Playwright’s versatility allowed me to effortlessly navigate between the different parts of the application. I was able to do it on different browsers, ensuring complete coverage of the desired tests.
Conclusion
I was impressed by Playwright in real conditions. It is a real ally for any developer or tester, having tests to do on a browser.
Its ease of use, coupled with its compatibility with various programming languages and browsers, makes it a very accessible tool. Its features are real assets that greatly facilitate work and accelerate results. And that’s not all, from my point of view the use of the tool also encourages collaboration and information sharing within teams, contributing to greater efficiency and transparency in the development process. It is for all these reasons that I recommend you test Playwright.
I will soon be writing articles on the installation of Playwright and its usage.