Rayrun
← Back to videos

Playwright Visual Comparisons | Playwright part - 28

The visual comparison is really a great feature.

The video is a tutorial on the visual comparison feature in Playwright test runner. The presenter explains how to use the feature to compare screenshots and identify differences between them. He demonstrates how to write a test case using the Playwright test library and the expect and test functions. He shows how to take a screenshot of a webpage using the page.screenshot function and save it with a specific file name. He then uses the toMatchSnapshot function to compare the screenshot with a reference image. The presenter discusses how subsequent runs of the test will compare the newly taken screenshot with the reference image. He also explains the process of updating the reference image if the content of the webpage changes. The video highlights the capabilities of the visual comparison feature and its usefulness in UI testing.

Related Videos

#16 - ARIA and how Playwright is making use of it to identify UI controls?
#16 - ARIA and how Playwright is making use of it to identify UI controls?
Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright - Set timeout, parallelisation and retries directly in your test files
Migrate from Jest to Playwright Test Runner | Playwright Tutorial - part 77
Migrate from Jest to Playwright Test Runner | Playwright Tutorial - part 77
Playwright Base URL | Playwright Tutorial - Part 39
Playwright Base URL | Playwright Tutorial - Part 39
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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].