Open JyotiPrakashMallick opened 4 hours ago
Hi there! Greetings to Hyderabad :)
In your Playwright config, you have headless: true
. This makes the tests run in the background. Try removing that line.
Hi @Skn0tt, thank you for prompt answer but I tried with headless: false
and observing the similar behavior. I reported in my question.
Sorry, looks like didn't read far enough. If it works on your colleague's machine but not on yours, then it's likely I also won't be able to reproduce it because it's caused by something specific to your machine. I see you're using VS Code. Is there a chance that you have the 'Show browsers' checkbox in the Playwright Extension unchecked? See https://playwright.dev/docs/getting-started-vscode#run-tests-and-show-browsers.
Version
1.47.1
Steps to reproduce
I am facing a strange issue with Playwright, whenever I am trying to run my spec file the chromium driver nor Firefox driver coming up. Rather it run in the background and it is very difficult for me to debug the test cases.
I am running with Node Version 20.12.1 Npm version : 10.8.3
OS : Windows 11
This is my
PlaywrightConfig.ts
file i tried with bothheadless: true | false
I was fearing may be the PowerShell execution policy must be stopping the browser to come up and change the policy as well. Also tried to keep
PlaywrightConfig.js
file and tried with bothheadless: true | false
. But no luck, can someone help me what must be the issue.Also checked if there is any instance of chromium running in the background by going to task manager and check. But there are no such driver running.
Tried to run with administrator privilege but not working, observing similar behavior.
The same configuration work on my colleagues machine and the chromium browser open up. My sample spec file.
Let me know if any more information required, but the same spec file working on my colleagues machine and the chromium browser open up and the test ran through.
Expected behavior
Chromium browser should open up and iterate through.
Actual behavior
Chromium browser not opening up rather it is running in the background.
Additional context
Tried installing chromium one more time from menu,
Environment
System : OS : Windows 11 IDE : Visual Studio Code Node Version 20.12.1 Npm version : 10.8.3