Skip to content

[BUG] FF - launchPersistentContext #2979

@ruslanx3m

Description

@ruslanx3m

Снимок экрана (82)
Context:

  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions