()
| 245 | } |
| 246 | |
| 247 | async close() { |
| 248 | if (this.page) { |
| 249 | await this.page.close() |
| 250 | } |
| 251 | await this.context.close() |
| 252 | await this.browser.close() |
| 253 | } |
| 254 | |
| 255 | async hardNavigation(metricName: string, url: string) { |
| 256 | this.page = this.page ?? (await this.context.newPage()) |