BotSharp/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/ElementLocatingArgs.cs

37 lines
965 B
C#
Raw Normal View History

2024-03-08 13:19:13 +00:00
namespace BotSharp.Abstraction.Browsing.Models;
public class ElementLocatingArgs
{
[JsonPropertyName("match_rule")]
public string MatchRule { get; set; } = string.Empty;
2024-05-23 12:05:36 +00:00
[JsonPropertyName("tag")]
public string? Tag { get; set; } = null!;
2024-03-08 13:19:13 +00:00
[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; }
2024-05-23 12:05:36 +00:00
public bool Parent { get; set; }
2024-03-08 13:19:13 +00:00
public bool FailIfMultiple { get; set; }
2024-08-31 12:03:25 +00:00
public bool IgnoreIfNotFound { get; set; }
2024-04-08 15:09:08 +00:00
/// <summary>
/// Draw outline around the element
/// </summary>
public bool Highlight { get; set; }
2024-06-21 18:23:18 +00:00
public string HighlightColor { get; set; } = "red";
2024-03-08 13:19:13 +00:00
}