question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Allow custom options when making screenshots with Playwright Test (e.g. fullscreen)

See original GitHub issue

Automatic 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:closed
  • Created 2 years ago
  • Reactions:19
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
bamanczakcommented, Nov 22, 2021

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.

4reactions
bamanczakcommented, Mar 18, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found