TE-12511: CLI-Capture - Fix 32767px screenshot height limit & per-viewport error isolation#506
Open
shrinishLT wants to merge 1 commit intoLambdaTest:stagefrom
Open
TE-12511: CLI-Capture - Fix 32767px screenshot height limit & per-viewport error isolation#506shrinishLT wants to merge 1 commit intoLambdaTest:stagefrom
shrinishLT wants to merge 1 commit intoLambdaTest:stagefrom
Conversation
…t capture errors - Cap fullPage screenshots to 32767px (browser engine limit for Safari/Firefox) instead of crashing - Wrap each viewport capture in its own try/catch so one failure doesn't abort remaining viewports - Use Promise.allSettled in async capture so one browser failure doesn't cancel other browsers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
parthlambdatest
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cannot take screenshot larger than 32767 pixels on any dimensionPromise.allSettledfor browser-level parallelism and per-viewport try/catch within the loop.dotlapse-visual-ui-pixelFiles Changed
src/lib/constants.ts— AddedMAXIMUM_POSSIBLE_PAGE_HEIGHT: 32767src/lib/screenshot.ts— AddedgetMaxPageHeight()helper, height cap logic, per-viewport try/catch,Promise.allSettledin async captureTest plan
smartui captureagainst a page with height > 32767px on Safari and Firefox — verify capped screenshot is produced with warning log--parallel) with a failing browser — verify other browsers completeJIRA: TE-12511
🤖 Generated with Claude Code