To automatically attach a screenshot upon test failure, use one of the Verify activities and set the TakeScreenshotIfFailed property to True. This ensures that a screenshot is captured and attached only when the verification fails.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit