How do you take screenshots in Testbench?

Most of the user manual just seems to talk about saving a screenshot if there is an error or comparing screenshots, but how do you create the initial screenshot with testbench? Even the sample code in github seems to create an error screenshot if no reference image exists (ScreenshotIT). Any help would be appreciated. Thank you.

Btw using compareScreen does take a screenshot it just seems an odd way to get a reference image to use for a later date. And it creates it in the error folder…

That’s exactly the Workflow to get your initial screenshots :sweat_smile:

Yeah, you fail the test first because the screenshot doesn’t exist, which gives you a screenshot for the next run.

Ah ok. It just seemed odd to me. Thank you for the clarification.

It’s also explicitly mentioned in the example