question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[PlayWright] Two chromium browser instances getting launched Instead of One

See original GitHub issue

What are you trying to achieve?

Trying to Automate Web using Playwright helper on Chromium, expected to get one browser launched and test executed

What do you get instead?

Two Browser instances are getting launched 1 as Incognito mode and other in Normal Mode

Provide console output if related. Use --verbose mode for more details. CodeceptJS v2.5.0 Using test root “C:\Automation\Demo_Playwright” Helpers: Playwright Plugins: screenshotOnFail, retryFailedStep, allure

Test Google Page – [1] Starting recording promises Emitted | suite.before ([object Object]) » [Session] Starting singleton browser session Search Page @Google Emitted | test.before ([object Object]) Emitted | test.start ([object Object]) Emitted | step.before (I am on page “https://www.google.com/”) Emitted | step.after (I am on page “https://www.google.com/”) Emitted | step.before (I wait 10) Emitted | step.after (I wait 10)

# paste output here

Provide test source code if related Feature(‘Test Google Page’);

Scenario(‘Search Page @Google’, (I)=>{ I.amOnPage(‘https://www.google.com/’) I.wait (10) I.fillField(‘q’,‘Google’) I.click(‘Google Search’) I.say(‘Done!’) });

// paste test

Details

  • CodeceptJS version:2.5.0
  • NodeJS Version:12.16.0
  • Operating System: Windows 10
  • puppeteer || webdriverio || protractor || testcafe version (if related)
  • Configuration file:
# const { setHeadlessWhen,setWindowSize } = require('@codeceptjs/configure');

// turn on headless mode when running with HEADLESS=true environment variable

// HEADLESS=true npx codecept run

setHeadlessWhen(process.env.HEADLESS);

exports.config = {

  tests: './tests/*_test.js',

  timeout: 10000,

  output: './output',

  helpers: {

    Playwright: {

      url: '',

      show: true,

      browser: 'chromium',

      windowSize: '1900x1200',

      waitForNavigation: [ "domcontentloaded", "networkidle0" ]

    }

  },

  include: {

    I: './steps_file.js'

  },

  bootstrap: null,

  mocha: {},    

  name: 'Demo_Playwright',

  plugins: {

    retryFailedStep: {

      enabled: true

    },

    screenshotOnFail: {

      enabled: true

    },

    allure: {

      enabled: true

    }

  }

}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Elverslanecommented, Mar 3, 2020
1reaction
DavertMikcommented, Mar 4, 2020

Yeah, let’s wait for them to fix this

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Two chromium browser instances and Two Tabs in ...
Context: Playwright Version: [what Playwright version do you use?] ... instances and Two Tabs in firefox getting launched Instead of One # ...
Read more >
java - A blank browser is automatically getting launched when ...
When I am trying to execute the playwright script, it launches 2 browsers instead of 1. And 1 of them is just a...
Read more >
Multi-page scenarios | Playwright
Playwright can automate scenarios that span multiple browser contexts or multiple tabs in a browser window.
Read more >
How to start with Playwright Debugging | BrowserStack
A step-by-step tutorial to perform Playwright Debugging and help you choose a suitable option to deliver a high-quality web application.
Read more >
BrowserContext | Playwright - CukeTest
BrowserContexts provide a way to operate multiple independent browser sessions. If a page opens another page, e.g. with a window.open call, the popup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found