38 public class UnitOfWork
89 internal IGPALGrid<string> RetGrid {
get;
set; } =
null;
96 public List<string>
TokenList {
get;
internal set; } =
null;
101 internal class WebElementWithType
105 internal ElementType elementType;
106 internal bool currentNode;
108 internal WebElementWithType(
Selector selector,
GPALElement webElement, ElementType elementType)
110 this.gPalElement = webElement;
111 this.elementType = elementType;
112 this.currentNode =
true;
113 this.selector = selector;
116 internal List<WebElementWithType> ContextPath {
get;
set; }
118 internal GPALElement ShadowRoot {
get;
set; }
120 internal List<string> FetchResults {
get;
set; } =
new List<string>();
122 internal IGPALGrid<string> FetchTokens {
get;
set; }
125 internal class ElementNode
127 public AutomationElement AutomationElement {
get;
internal set; }
128 public Control ControlElement {
get;
internal set; }
129 public GPALElement GPALElement {
get;
internal set; }
130 public InteractionType InteractionType {
get;
internal set; } = InteractionType.Selenium;
131 public int OffsetX {
get;
internal set; } = 0;
132 public int OffsetY {
get;
internal set; } = 0;
137 internal GPALGrid<UnitOfWork.ElementNode> ElementGrid {
get;
set; } =
null;
145 public List<string>
HeaderList {
get;
internal set; } =
null;
146 internal SortedDictionary<int, string> MatchedRowIndexes {
get;
set; } =
null;
165 internal bool GetGridCalled {
get;
set; } =
false;
178 internal WaitTime WaitForInMs {
get;
set; } = WaitTime.Never;
184 internal DateTime? WaitForSatisfied {
get;
set; } =
null;
185 internal string WaitForTitle {
get;
set; } =
null;
186 internal string WaitForTitleRegex {
get;
set; } =
null;
187 internal ElementState WaitForElementState {
get;
set; } = ElementState.NotSet;
189 internal int ColCount {
get;
set; } = 0;
190 internal int RowCount {
get;
set; } = 0;
192 internal Browser.Browser.CallAfterFillInDelegate CallAfterFillIn {
get;
set; }
193 internal List<CallIfDelegate> CallIfFound {
get;
set; }
194 internal List<CallIfDelegate> CallIfNotFound {
get;
set; }
195 internal Application.Application.CallAfterFillInDelegate AppCallAfterFillIn {
get;
set; }
196 internal List<Application.Application.CallIfDelegate> AppCallIfFound {
get;
set; }
197 internal List<Application.Application.CallIfDelegate> AppCallIfNotFound {
get;
set; }
199 public CallIfStatus CallIfFoundHandled {
get;
internal set; } = CallIfStatus.NotHandled;
200 public CallIfStatus CallIfNotFoundHandled {
get;
internal set; } = CallIfStatus.NotHandled;
201 public CallIfStatus AppCallIfFoundHandled {
get;
internal set; } = CallIfStatus.NotHandled;
202 public CallIfStatus AppCallIfNotFoundHandled {
get;
internal set; } = CallIfStatus.NotHandled;
226 CallIfFound =
new List<CallIfDelegate>();
227 CallIfNotFound =
new List<CallIfDelegate>();
228 AppCallIfFound =
new List<Application.Application.CallIfDelegate>();
229 AppCallIfNotFound =
new List<Application.Application.CallIfDelegate>();
230 MatchedRowIndexes =
new SortedDictionary<int, string>();
232 ContextPath =
new List<WebElementWithType>();
233 WaitForInMs = GPAL.GPALSettings.WaitForInMs;
235 RetGrid = GPAL.GridForType<
string>();