diff --git a/playwright.go b/playwright.go index ef6ce97..0e81340 100644 --- a/playwright.go +++ b/playwright.go @@ -245,8 +245,9 @@ func (b playWrightBrowser) Open(ctx context.Context, url string, opts OpenPageOp func (b playWrightBrowser) Close() error { return errors.Join( - b.ctx.Close(), b.browser.Close(), + b.ctx.Close(), + b.pw.Stop(), ) }