make screenshot update cookies

This commit is contained in:
2024-12-14 00:50:25 -05:00
parent a51f8200ea
commit 23334991b1
2 changed files with 9 additions and 2 deletions

View File

@@ -256,6 +256,11 @@ func (b playWrightBrowser) Screenshot(ctx context.Context, url string, opts Scre
}
defer page.Close()
err = b.updateCookies(ctx, page)
if err != nil {
return nil, err
}
return b.getScreenshot(ctx, page, opts)
}