diff --git a/common/screenshotter.go b/common/screenshotter.go index 83ccf2e52..b1ea66d8f 100644 --- a/common/screenshotter.go +++ b/common/screenshotter.go @@ -278,7 +278,6 @@ func (s *screenshotter) screenshotElement(h *ElementHandle, opts *ElementHandleS } documentRect := bbox - rt := h.execCtx.vu.Runtime() scrollOffset := h.Evaluate(`() => { return {x: window.scrollX, y: window.scrollY};}`) var returnVal Position