Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 41ac717

Browse files
committed
Fix clear.cookies
1 parent 90fae32 commit 41ac717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/browser_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func (b *BrowserContext) ClearCookies() error {
502502
clearCookies := storage.
503503
ClearCookies().
504504
WithBrowserContextID(b.id)
505-
if err := clearCookies.Do(b.ctx); err != nil {
505+
if err := clearCookies.Do(cdp.WithExecutor(b.ctx, b.browser.conn)); err != nil {
506506
return fmt.Errorf("clearing cookies: %w", err)
507507
}
508508
return nil

0 commit comments

Comments
 (0)