make screenshot update cookies
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user