BotSharp/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.CloseBrowser.cs

14 lines
267 B
C#
Raw Normal View History

2024-02-01 03:29:13 +00:00
namespace BotSharp.Plugin.WebDriver.Drivers.PlaywrightDriver;
public partial class PlaywrightWebDriver
{
2024-02-06 05:05:52 +00:00
public async Task CloseBrowser()
2024-02-01 03:29:13 +00:00
{
2024-02-06 14:07:09 +00:00
if (_instance.Context != null)
{
await _instance.Context.CloseAsync();
}
2024-02-01 03:29:13 +00:00
}
}