microsoft / microsoft/playwright

Is there any good solution for making fullpage screenshots on lazy load pages?

Open
#19,861 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

I was wondering if there is any good solution out there to this problem. And I'm searching for a more generic solution for making fullpage screenshots on different websites with the lazy loaded content loaded. especially images.

The only thing I had in mind was something like scrolling to the bottom of the page or scrollIntoViewIfNeeded with a bottom element. But this doesn't work so far.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Playwright's existing full-page screenshot behavior and the reported scrolling and scrollIntoViewIfNeeded approaches for lazy-loaded content. Define a generic solution that loads lazy content, especially images, across different websites, then verify that full-page screenshots consistently include it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.