-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
- Playwright Version: [1.2.1]
- Operating System: [Windows]
- Node version: [12]
- Browser: [Firefox]
Codet
const { firefox } = require("playwright");
const path = require("path");
const fs = require("fs-extra");
(async () => {
const ff_profile = path.join(__dirname, '/profile');
await fs.ensureDir(ff_profile);
const browserContext = await firefox.launchPersistentContext(ff_profile, {
headless: false,
viewport: null
});
const page = await browserContext.newPage();
await page.goto('http://example.com');
await page.waitForTimeout(10000);
await browserContext.close();
})();Describe the bug
Hi, with Firefox browser, this code is opening 2 browsers if I use const page = await browserContext.newPage(), or is opening 1 browser if is use const page = browserContext.pages()[0], but in my case page.close will close browser .. so every opened page is a new Browser ... if I add to option locale: 'de-DE' - opens 3 browsers ...
Metadata
Metadata
Assignees
Labels
No labels
