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

13 lines
394 B
C#
Raw Normal View History

2024-02-01 03:29:13 +00:00
using Microsoft.Extensions.Logging;
namespace BotSharp.Plugin.WebDriver.Drivers.PlaywrightDriver;
public partial class PlaywrightWebDriver
{
public async Task CloseBrowser(Agent agent, BrowsingContextIn context, string messageId)
{
// await _instance.Browser.CloseAsync();
_logger.LogInformation($"{agent.Name} closed browser with page {_instance.Page.Url}");
}
}