mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat: introduce page.browserContext() (#3655)
This commit is contained in:
@@ -172,6 +172,13 @@ class Page extends EventEmitter {
|
||||
return this._target.browser();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {!Puppeteer.BrowserContext}
|
||||
*/
|
||||
browserContext() {
|
||||
return this._target.browserContext();
|
||||
}
|
||||
|
||||
_onTargetCrashed() {
|
||||
this.emit('error', new Error('Page crashed!'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user