.netplaywrightcoded-ui-testsplaywright-dotnet

How can you test images on a page with playwright .NET without extra dependencies?


Say for example I need to test this page's images, what are my options in playwright for .NET? Is it possible to visually compare the page or image? Can you check if the src field in the is correct?

The only resource I could find is this SO question, but I don't want to add more dependencies.


Solution

  • As written in the comments by hardkoded, the only way I could find is to use third party dependencies or writing your own comparer. For solutions go to this SO page.