You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const element = await ctx.tester.findByRole('alert')
382
+
const screenshot = await element.screenshot()
383
+
// do something with the screenshot
384
+
return difference
385
+
}
386
+
})
387
+
```
388
+
389
+
::: tip
390
+
IfyouareusingTypeScript, don't forget to add `@vitest/browser/providers/playwright` to your `tsconfig` "compilerOptions.types" field to get autocompletion:
IfyouareusingTypeScript, don't forget to add `@vitest/browser/providers/webdriverio` to your `tsconfig` "compilerOptions.types" field to get autocompletion:
0 commit comments