From f86f437f31be409fc863df88a50a68ad0378e3c2 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Sat, 24 Feb 2024 10:15:26 -0600 Subject: [PATCH] Release v1.0.1 --- Directory.Build.props | 2 +- .../Drivers/PlaywrightDriver/PlaywrightInstance.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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[] {