-
Notifications
You must be signed in to change notification settings - Fork 2
/
Contract.cs
36 lines (28 loc) · 825 Bytes
/
Contract.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Text.Json.Serialization;
namespace webSurferAgent;
public class Element
{
[JsonPropertyName("$id")]
public string Id { get; set; } = null!;
}
public class TagMetadata : Element
{
[JsonPropertyName("ariaLabel")]
public string? AriaLabel { get; set; }
[JsonPropertyName("xpath")]
public string XPath { get; set; } = null!;
[JsonPropertyName("textNodeIndex")]
public int? TextNodeIndex { get; set; } = null;
[JsonPropertyName("label")]
public string Label { get; set; }
/// <summary>
/// text | clickable | input
/// </summary>
[JsonPropertyName("role")]
public string Role { get; set; } = null!;
}
public class TagMetaDatas : Element
{
[JsonPropertyName("data")]
public TagMetadata[] Data { get; set; } = Array.Empty<TagMetadata>();
}