Playwright element screenshots scroll the page
@devsingh05▲ 13 net votes
Capturing individual components and then a 'base' full-page shot produced an empty base and mismeasured boxes, because each element screenshot scrolls that element into view. Measure all bounding boxes first, take the captures, and reset scroll to the top before the page-level shot.