close playwright instance on browser close
This commit is contained in:
parent
8ad5a34f2d
commit
2ca2bb0742
@ -245,8 +245,9 @@ func (b playWrightBrowser) Open(ctx context.Context, url string, opts OpenPageOp
|
|||||||
|
|
||||||
func (b playWrightBrowser) Close() error {
|
func (b playWrightBrowser) Close() error {
|
||||||
return errors.Join(
|
return errors.Join(
|
||||||
b.ctx.Close(),
|
|
||||||
b.browser.Close(),
|
b.browser.Close(),
|
||||||
|
b.ctx.Close(),
|
||||||
|
b.pw.Stop(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user