chore: update readme, add workflow
This commit is contained in:
parent
624732b187
commit
f9e5abb631
7 changed files with 95 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue