Skip to content

Commit

Permalink
Installing playwright chromium only
Browse files Browse the repository at this point in the history
  • Loading branch information
jsboige committed Apr 18, 2024
1 parent 6be7a17 commit fbcc1ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public IBrowser Browser
if (browser == null)
{
Logger.Log("Starting Playwright Browser");
var exitCode = Microsoft.Playwright.Program.Main(new[] { "install" });
var exitCode = Microsoft.Playwright.Program.Main(new[] { "install", "chromium" });
if (exitCode != 0)
{
throw new Exception($"Playwright exited with code {exitCode}");
Expand All @@ -47,6 +47,7 @@ public IBrowser Browser
return playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{
Headless = Config.HeadLessBrowser,
//Args = new []{ "--start-maximized" }
//SlowMo = 50,
});
}).Result;
Expand Down

0 comments on commit fbcc1ee

Please sign in to comment.