This simple and easy to follow tutorial will guide you through how you can use playwright test to capture screenshots and record videos after test execution.
In this video, the presenter demonstrates how to record screenshots and videos using the Playwright testing framework after test execution. This can be beneficial when debugging tests, especially in continuous integration environments.
Here's a step-by-step summary of the key steps in the video:
use
property in the test config file, you can set the video and screenshot options globally. These options can also be set for specific projects by using the use
property within the project definition.In conclusion, Playwright simplifies the process of capturing videos and screenshots during test execution, providing useful debugging information for developers and testers alike. So, take the time to explore these capabilities and determine which options work best for your testing needs. And as always, if you have any questions or comments, feel free to drop them in the comments section of the video.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].