16 lines
497 B
C#
16 lines
497 B
C#
|
|
namespace BotSharp.Plugin.WebDriver.Drivers.PlaywrightDriver;
|
||
|
|
|
||
|
|
public partial class PlaywrightWebDriver
|
||
|
|
{
|
||
|
|
public async Task<BrowserActionResult> ActionOnElement(MessageInfo message, ElementLocatingArgs location, ElementActionArgs action)
|
||
|
|
{
|
||
|
|
await _instance.Wait(message.ConversationId);
|
||
|
|
var result = await LocateElement(message, location);
|
||
|
|
if (result.IsSuccess)
|
||
|
|
{
|
||
|
|
await DoAction(message, action, result);
|
||
|
|
}
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
}
|