mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(firefox): support page.browserContext() (#3965)
This commit is contained in:
parent
c64e02e7c2
commit
0cf6ab68e7
@ -88,6 +88,13 @@ class Page extends EventEmitter {
|
||||
this._viewport = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {BrowserContext}
|
||||
*/
|
||||
browserContext() {
|
||||
return this._target.browserContext();
|
||||
}
|
||||
|
||||
_onUncaughtError(params) {
|
||||
let error = new Error(params.message);
|
||||
error.stack = params.stack;
|
||||
|
@ -1065,7 +1065,7 @@ module.exports.addTests = function({testRunner, expect, headless, Errors, Device
|
||||
});
|
||||
});
|
||||
|
||||
describe_fails_ffox('Page.browserContext', function() {
|
||||
describe('Page.browserContext', function() {
|
||||
it('should return the correct browser instance', async function({page, context, browser}) {
|
||||
expect(page.browserContext()).toBe(context);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user