Rayrun
← Back to Discord Forum

How to attach screenshot exact failed step ?

Currently, all the screenshot is attaching bottom instead of specific failed step. How to attach screenshot exact failed step?

This thread is trying to answer question "How to attach screenshot exact failed step?"

7 replies
refactoreric

Hi, this is not exactly an answer to your question, but have you tried the trace files? They are much more user-friendly and useful for troubleshooting issues with your tests than mere screenshots. https://playwright.dev/docs/trace-viewer-intro

@michalj123: Thanks

Thanks

refactoreric

The answer from perplexity.ai looks like an inefficient solution to get a screenshot of a failed test, which you can also just do with simple configuration. https://playwright.dev/docs/test-use-options#recording-options

Be sure to take a look at the earlier shared link about trace viewer and trace files.

And if you want to see Trace online, you can check this out: https://argos-ci.com/playwright

Related Discord Threads

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 luc@ray.run.