Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Two chromium browser instances and Two Tabs in firefox getting launched Instead of One #1309

Closed
MaxTester1 opened this issue Mar 10, 2020 · 2 comments

Comments

@MaxTester1
Copy link

Context:

  • Playwright Version: [what Playwright version do you use?] "playwright": "^0.11.1"
  • Operating System: [e.g. Windows, Linux or Mac] Windows 10
  • Extra: [any specific details about your environment]

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:

const playwright = require('playwright');

(async () => {
  for (const browserType of ['chromium', 'firefox']) {
    const browser = await playwright[browserType].launch({ headless: false });
    const context = await browser.newContext();
    const page = await context.newPage();
    await page.goto('http://google.com/');
    await page.screenshot({ path: `example-${browserType}.png` });
    await browser.close();
  }
})();

Describe the bug
Trying to Automate Web using Playwright, expected to get one browser launched and test executed
Add any other details about the problem here.

@aslushnikov
Copy link
Collaborator

This is a dupe of #981 and is actually fixed on tip-of-tree and will be part of the next release (later this week). Meanwhile, you can try it installing playwright@next.

@MaxTester1
Copy link
Author

MaxTester1 commented Mar 13, 2020

Thanks @aslushnikov for confirming the issue, i tried the new version how to skip launching chrome in Incognito mode wanted to launch normal mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants