I was amazed by trending Automation tool Playwright and wanted to share some eye-catching features of the Playwright:
API support on the fly
- No need to depend on third-party library to automate API
- API can be added along with UI test cases
In the below snip, I am using API response after the click event on the UI effortlessly:
In-built support of the detailed reports
- Inbuilt descriptive support
- Support of the test screenshots, videos, and logs on the go
- Easy to debug at any point of the test case via timelines or the test steps
- Point out the flaky test cases which help us to catch intermittent failures
- Network logs recorded for each test step
- Pick locator, Selectors for the web page directly from the report
Below is the snip of the in-built report
Assert based on Visual Comparisons
- Playwright allows you to assert a test case totally based on the screenshot pixels
- Validate test cases based on the screenshot of the page as well as the single component e.g toggle button
- Helps in catching user experience issues
Here test case got failed due to image comparison
Easy to handle Download streams
Easy to perform operations on the downloaded files
here is a good read(https://playwright.dev/docs/api/class-download)
Auto-wait mechanism
- No need to break your head why it is not clicked and not filled, it handles wait automatically for each action
- It will run all the possible wait scenarios before performing an action Here is an example of the click action done by the playwright:
Do let me know the feature which amazed you and wanted to explore the Playwright more
Top comments (0)