Skip to content

Commit 01412b7

Browse files
committed
fix: Reset browser context and state on close
1 parent 07a58e5 commit 01412b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/helper/Playwright.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,10 @@ class Playwright extends Helper {
10311031
this.frame = null
10321032
popupStore.clear()
10331033
if (this.options.recordHar) await this.browserContext.close()
1034+
this.browserContext = null
10341035
await this.browser.close()
1036+
this.browser = null
1037+
this.isRunning = false
10351038
}
10361039

10371040
async _evaluateHandeInContext(...args) {

0 commit comments

Comments
 (0)