[BUG] Console window appearing over WPF Application v1.30
See original GitHub issueContext:
- Playwright Version: 1.30.0
- Operating System: Windows
- .NET version: [e.g. .NET 7]
- Browser: FireFox
- Extra: [any specific details about your environment]
Code Snippet
Microsoft.Playwright.Program.Main(new[] {"install", "firefox"});
Describe the bug
I’m currently using playwright in my WPF application and upon my application startup I have be running the code on startup:
Microsoft.Playwright.Program.Main(new[] {“install”, “firefox”});
Everything has been working great. However, with the latest update playwright version (1.30.0), when that code is run it now pops up a console window cmd.exe when the other versions previously were silent.
Even if the browser is already installed that window pops up for a few seconds over my application. I was wondering if there was a way to revert back to the old behavior especially for a WPF Application as I prefer not to have a console window popping up in front of my application.
I reported this issue before from a previous version https://github.com/microsoft/playwright-dotnet/issues/2103#issue-1206735789
Issue Analytics
- State:
- Created 8 months ago
- Comments:5 (3 by maintainers)
I was able to reproduce it with a WPF application as well with a normal Windows forms application. Maybe @nohwnd knows why this happens, or if this is normal Windows behavior.
Currently the way my app is setup it calls:
Microsoft.Playwright.Program.Main(new[] {"install", "firefox"})
on startup just to make sure the correct browser is installed. When the browser is not installed of course you see the console popup downloading the browser ect… That popup is not a big deal I can live with that since it only really happens once when I update Playwright.
The problem is even when it does not need updating that console window pops up every time. Since it does not seem anything can be done about the current problem, is there a way to check if the current download browser is up to date without having to run the playwright install command?