[Feature] Allow custom options when making screenshots with Playwright Test (e.g. fullscreen)
See original GitHub issueAutomatic Screenshots appear in the test output directory, typically test-results, but they are not FullPage.
You don’t have the same options as in page.screenshot([options])
, like “FullPage”, which will be really useful to see some screenshot errors that otherwise you can’t see (full page = full screenshot information)
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
use: {
screenshot: 'only-on-failure',
},
};
export default config;
Issue Analytics
- State:
- Created 2 years ago
- Reactions:19
- Comments:7 (2 by maintainers)
Top Results From Across the Web
27 | Full Page | Element Screenshot - Playwright with Java
In this video, I have explained how to take Screenshot in Playwright | Full Page | Element Screenshot - Playwright with JavaSchedule a ......
Read more >How to capture screenshots in Playwright
In this article, we will discuss in detail the various different ways to capture screenshots in playwright.
Read more >Use Playwright to automate and test in Microsoft Edge
Use Playwright to automate and test in Microsoft Edge. The Playwright library provides cross-browser automation through a single API.
Read more >Configuration | Playwright
For example there are options for headless, viewport and ignoreHTTPSErrors. You can also record a video or a trace for the test or...
Read more >Playwright | CodeceptJS
do not start browser before a test, start it manually inside a helper with this.helpers["Playwright"]._startBrowser() . chromium object ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case the failure screenshot that is not full-page, does not give the team much debug info, thus I would love this feature to be implemented.
I’m watching this issue, with high expectations, whenever I see a notification about it. In my project, we manage to live without it, but from time to time it’s really annoying to not have a full page screenshot.