2024-03-08 13:17:36 +00:00
|
|
|
namespace BotSharp.Plugin.WebDriver.Drivers.PlaywrightDriver;
|
|
|
|
|
|
|
|
|
|
public partial class PlaywrightWebDriver
|
|
|
|
|
{
|
|
|
|
|
public async Task<BrowserActionResult> ActionOnElement(MessageInfo message, ElementLocatingArgs location, ElementActionArgs action)
|
|
|
|
|
{
|
2024-04-09 03:38:56 +00:00
|
|
|
await _instance.Wait(message.ContextId);
|
2024-03-08 13:17:36 +00:00
|
|
|
var result = await LocateElement(message, location);
|
|
|
|
|
if (result.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
await DoAction(message, action, result);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|