Skip to content

screenshot

screenshot(page, name): Promise<void>

Defined in: fixture.ts:732

Take an explicitly named screenshot, recorded as a ‘screenshot’ event carrying the name. If the page looks the same as the previous step, the event simply joins that step’s list. Captures even inside a suppressScreenshots() block.

Page

string

Promise<void>