BotSharp/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/ElementLocatingArgs.cs
2024-04-08 10:09:08 -05:00

30 lines
747 B
C#

namespace BotSharp.Abstraction.Browsing.Models;
public class ElementLocatingArgs
{
[JsonPropertyName("match_rule")]
public string MatchRule { get; set; } = string.Empty;
[JsonPropertyName("text")]
public string? Text { get; set; }
[JsonPropertyName("attribute_name")]
public string? AttributeName { get; set; }
[JsonPropertyName("attribute_value")]
public string? AttributeValue { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; } = -1;
[JsonPropertyName("selector")]
public string? Selector { get; set; }
public bool FailIfMultiple { get; set; }
/// <summary>
/// Draw outline around the element
/// </summary>
public bool Highlight { get; set; }
}