close playwright instance on browser close
This commit is contained in:
@@ -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(),
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user