Skip to content

Commit 741de1d

Browse files
authored
fix: hide cmd.exe window when invoking CLI programmatically (#2623)
1 parent ca7b02a commit 741de1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Playwright/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public int Run(string[] args)
5252
var playwrightStartInfo = new ProcessStartInfo(pwPath, allArgs)
5353
{
5454
UseShellExecute = false,
55+
// This works after net8.0-preview-4
56+
// https://github.com/dotnet/runtime/pull/82662
57+
WindowStyle = ProcessWindowStyle.Hidden,
5558
};
5659
foreach (var pair in Driver.GetEnvironmentVariables())
5760
{

0 commit comments

Comments
 (0)