diff --git a/Directory.Build.props b/Directory.Build.props index 351950201..5d0bc8097 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ net8.0 10.0 - 0.22.0 + 1.0.1 false false diff --git a/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightInstance.cs b/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightInstance.cs index 252f5f9a5..5f0c8cea6 100644 --- a/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightInstance.cs +++ b/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightInstance.cs @@ -30,7 +30,11 @@ public async Task InitContext(string id) string tempFolderPath = $"{Path.GetTempPath()}\\playwright\\{id}"; _contexts[id] = await _playwright.Chromium.LaunchPersistentContextAsync(tempFolderPath, new BrowserTypeLaunchPersistentContextOptions { +#if DEBUG + Headless = false, +#else Headless = true, +#endif Channel = "chrome", IgnoreDefaultArgs = new[] {