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] Always launch 2 tabs or 2 windows #1078

Closed
Elverslane opened this issue Feb 21, 2020 · 1 comment
Closed

[BUG] Always launch 2 tabs or 2 windows #1078

Elverslane opened this issue Feb 21, 2020 · 1 comment

Comments

@Elverslane
Copy link

Elverslane commented Feb 21, 2020

Context:

  • Playwright Version: [0.11.1]
  • Operating System: [Mac Catalina]

package.json
{ "dependencies": { "playwright": "^0.11.1" } }

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

With default settings and for any browser if launch tests with parameter launch({ headless: false }) can see double window/tab. Its kinda strange

Снимок экрана 2020-02-21 в 12 12 20
Снимок экрана 2020-02-21 в 12 12 23

@pavelfeldman
Copy link
Member

Closing as a duplicate of #981

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