Skip to content

[BUG] Full page screenshots​ doesn't work on Electron application #11041

@nabil-brn

Description

@nabil-brn

Context:

  • Playwright Version: 1.17.0
  • Operating System: Windows, Linux and Mac
  • Node.js version: 14.18.1
  • Browser: Chromium (Electron)
  • Extra: N/A

Code Snippet

import test from "../fixtures/common";
import { expect } from "@playwright/test";
import { OnboardingPage } from "../models/OnboardingPage";

test("Onboarding", async ({ page }) => {
  const onboardingPage = new OnboardingPage(page);

  await test.step("Get started", async () => {
    expect(await onboardingPage.getStartedButton).toBeVisible();
    expect(await page.screenshot({ fullPage: true })).toMatchSnapshot(`getstarted.png`);
  });
})

Describe the bug
On Electron application, I unfortunately can't take a screenshot of the full page.
https://playwright.dev/docs/screenshots#full-page-screenshots

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions