GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
SelectorSet.cs
1// =============================================================================
2// GPAL - Generally Positive Automation Library
3// Copyright © 2026 Software Decisions, Inc. All rights reserved.
4//
5// This file is part of GPAL.
6// Licensed under the Business Source License 1.1
7//
8// Primary development, architecture, and vision by Michael B. Vederman,
9// CEO of Software Decisions, Inc., Texas.
10//
11// Internal development maintained privately.
12// Public releases appear on GitHub: https://github.com/SoftwareDecisionsInc/GPAL.
13//
14// See LICENSE for full terms, including Additional Use Grant.
15// =============================================================================
16
17using System;
18using System.Collections.Generic;
19using System.ComponentModel;
20using System.Linq;
21using System.Text;
22using System.Threading.Tasks;
23
24namespace GenerallyPositive
25{
26 public class SelectorSet
27 {
28 // must match SelectorSet.js
29 // lowercase first letter to map to javascript names
30 [WithCSS(Description="Method to use to find css")]
31 public string css { get; set; }
32 [WithXPath(Description="Method to use to find X Path")]
33 public string xPath { get; set; }
34 [WithXPath(Description = "Method to use to find X Path")]
35 public string fullXPath { get; set; }
36 [WithValue(Description = "")]
37 public string value { get; set; }
38 [WithText(Description = "")]
39 public string text { get; set; }
40 [MatchSrc(Description = "")]
41 public string src { get; set; }
42 [MatchHRef(Description = "")]
43 public string href { get; set; }
44 [MatchValue(Description = "")]
45 public string matchvalue { get; set; }
46 [MatchText(Description = "")]
47 public string matchtext { get; set; }
48 [MatchHRef(Description = "")]
49 public string matchhref { get; set; }
50 [MatchSrc(Description = "")]
51 public string matchsrc { get; set; }
52 [MatchPlaceholder(Description = "")]
53 public string placeholder { get; set; }
54 public string tagName { get; set; }
55 [WithSelectorName(Description = "")]
56 public string selectorName { get; set; }
57 [WithOffsetX(Description = "")]
58 public int offsetX { get; set; }
59 [WithOffsetY(Description = "")]
60 public int offsetY { get; set; }
61 [WithDeltaX(Description = "")]
62 public int deltaX { get; set; }
63 [WithDeltaY(Description = "")]
64 public int deltaY { get; set; }
65 [WithImage(Description="")]
66 public string imageData { get; set; }
67 public List<ClientRectangle> clientRects { get; set; }
68 public ClientRectangle boundingRect { get; set; }
69 public string pageURL { get; set; }
70
71 public class ClientRectangle
72 {
73 public float top;
74 public float left;
75 public float bottom;
76 public float right;
77 public float x;
78 public float y;
79 public float width;
80 public float height;
81 }
82
83 public SelectorSet()
84 {
85
86 }
87 }
88}
89