chore: update readme, add workflow

This commit is contained in:
Pavel Feldman
2025-03-21 13:16:30 -07:00
parent 624732b187
commit f9e5abb631
7 changed files with 95 additions and 21 deletions

View File

@@ -49,7 +49,10 @@ export class Context {
const browser = await this._createBrowser();
this._page = await browser.newPage();
this._page.on('console', event => this._console.push(event));
this._page.on('framenavigated', () => this._console.length = 0);
this._page.on('framenavigated', frame => {
if (!frame.parentFrame())
this._console.length = 0
});
})();
return this._initializePromise;
}