21 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
22 public class GPALAttribute : Attribute
24 public string Description {
get;
set; }
25 public string MethodName {
get;
set; } =
null;
26 public GPALAttribute(
string Description =
"")
28 this.Description = Description;
31 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
32 class SingleUseAttribute : GPALAttribute
34 public SingleUseAttribute(
string Description =
"")
36 this.Description = Description;
39 #region GPAL Menu Names
40 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
41 class DataAttribute : GPALAttribute
43 public DataAttribute(
string Description =
"")
45 this.Description = Description;
48 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
49 class CallbackAttribute : GPALAttribute
51 public CallbackAttribute(
string Description =
"")
53 this.Description = Description;
56 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
57 class BrowserAttribute : GPALAttribute
59 public BrowserAttribute(
string Description =
"")
61 this.Description = Description;
64 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
65 class ActionAttribute : GPALAttribute
67 public ActionAttribute(
string Description =
"")
69 this.Description = Description;
72 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
73 class HelperAttribute : GPALAttribute
75 public HelperAttribute(
string Description=
"")
77 this.Description = Description;
80 [AttributeUsage(AttributeTargets.All)]
81 class FluentAttribute : GPALAttribute
83 public FluentAttribute(
string Description =
"")
85 this.Description = Description;
88 [AttributeUsage(AttributeTargets.All)]
89 class SettingsAttribute : GPALAttribute
91 public SettingsAttribute(
string Description =
"")
93 this.Description = Description;
96 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
97 class GPALSettingsAttribute : GPALAttribute
99 public GPALSettingsAttribute(
string Description =
"")
101 this.Description = Description;
104 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
105 class ModifierAttribute : GPALAttribute
107 public ModifierAttribute(
string Description =
"")
109 this.Description = Description;
112 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
113 class ConstantAttribute : GPALAttribute
115 public ConstantAttribute(
string Description =
"")
117 this.Description = Description;
120 [AttributeUsage(AttributeTargets.All)]
121 class FormsAttribute : GPALAttribute
123 public FormsAttribute(
string Description =
"")
125 this.Description = Description;
128 [AttributeUsage(AttributeTargets.All)]
129 class ComponentAttribute : GPALAttribute
131 public ComponentAttribute(
string Description =
"")
133 this.Description = Description;
136 [AttributeUsage(AttributeTargets.All)]
137 class ElementAssitantAttribute : GPALAttribute
139 public ElementAssitantAttribute(
string Description =
"")
141 this.Description = Description;
144 [AttributeUsage(AttributeTargets.All)]
145 class KeysAttribute : GPALAttribute
147 public KeysAttribute(
string Description =
"")
149 this.Description = Description;
152 [AttributeUsage(AttributeTargets.All)]
153 class FileAttribute : GPALAttribute
155 public FileAttribute(
string Description =
"")
157 this.Description = Description;
160 [AttributeUsage(AttributeTargets.All)]
161 class ScrollAttribute : GPALAttribute
163 public ScrollAttribute(
string Description =
"")
165 this.Description = Description;
168 [AttributeUsage(AttributeTargets.All)]
169 class WaitAttribute : GPALAttribute
171 public WaitAttribute(
string Description =
"")
173 this.Description = Description;
176 [AttributeUsage(AttributeTargets.All)]
177 class WorkflowAttribute : GPALAttribute
179 public WorkflowAttribute(
string Description =
"")
181 this.Description = Description;
185 #endregion GPAL Menu Names
187 #region Parameter Attributes
189 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
190 class EnumAttribute : GPALAttribute
193 public EnumAttribute(
string Description =
"In GPAL Studio, present menu of enum names")
195 this.Description = Description;
198 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
199 class DirectoryAttribute : GPALAttribute
202 public DirectoryAttribute(
string Description =
"")
204 this.Description = Description;
207 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
208 class IntAttribute : GPALAttribute
211 public IntAttribute(
string Description =
"")
213 this.Description = Description;
216 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
217 class URLAttribute : GPALAttribute
220 public URLAttribute(
string Description =
"")
222 this.Description = Description;
225 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
226 class GPALFileAttribute : GPALAttribute
229 public GPALFileAttribute(
string Description =
"")
231 this.Description = Description;
234 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
235 class SelectorAttribute : GPALAttribute
238 public SelectorAttribute(
string Description =
"")
240 this.Description = Description;
243 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
244 class BrowserTypeAttribute : GPALAttribute
247 public BrowserTypeAttribute(
string Description =
"")
249 this.Description = Description;
252 #endregion Parameter Attributes
253 #region Interface Attribute
254 class InterfaceAttribute : GPALAttribute
256 public InterfaceAttribute(
string Description =
"")
258 this.Description = Description;
261 #endregion Interface Attribute
262 #region SelectorSet Attributes
264 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
265 public class WithCSS : GPALAttribute
268 public WithCSS(
string Description =
"Method name used to handle css value")
270 this.Description = Description;
271 this.MethodName =
"WithCSS";
275 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
276 public class WithXPath : GPALAttribute
279 public WithXPath(
string Description =
"Method name used to handle x path")
281 this.Description = Description;
282 this.MethodName =
"WithXPath";
286 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
287 public class WithValue : GPALAttribute
290 public WithValue(
string Description =
"")
292 this.Description = Description;
293 this.MethodName =
"WithValue";
297 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
298 public class MatchValue : GPALAttribute
301 public MatchValue(
string Description =
"")
303 this.Description = Description;
304 this.MethodName =
"MatchValue";
308 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
309 public class WithText : GPALAttribute
312 public WithText(
string Description =
"")
314 this.Description = Description;
315 this.MethodName =
"WithText";
319 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
320 public class MatchText : GPALAttribute
323 public MatchText(
string Description =
"")
325 this.Description = Description;
326 this.MethodName =
"MatchText";
330 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
331 public class MatchSrc : GPALAttribute
334 public MatchSrc(
string Description =
"")
336 this.Description = Description;
337 this.MethodName =
"MatchSrc";
341 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
342 public class MatchHRef : GPALAttribute
345 public MatchHRef(
string Description =
"")
347 this.Description = Description;
348 this.MethodName =
"MatchHRef";
352 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
353 public class MatchPlaceholder : GPALAttribute
356 public MatchPlaceholder(
string Description =
"")
358 this.Description = Description;
359 this.MethodName =
"MatchPlaceholder";
363 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
364 public class WithSelectorName : GPALAttribute
367 public WithSelectorName(
string Description =
"")
369 this.Description = Description;
370 this.MethodName =
"WithSelectorName";
374 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
375 public class WithOffsetX : GPALAttribute
378 public WithOffsetX(
string Description =
"")
380 this.Description = Description;
381 this.MethodName =
"WithOffsetX";
385 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
386 public class WithOffsetY : GPALAttribute
389 public WithOffsetY(
string Description =
"")
391 this.Description = Description;
392 this.MethodName =
"WithOffsetY";
396 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
397 public class WithDeltaX : GPALAttribute
400 public WithDeltaX(
string Description =
"")
402 this.Description = Description;
403 this.MethodName =
"WithDeltaX";
407 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
408 public class WithDeltaY : GPALAttribute
411 public WithDeltaY(
string Description =
"")
413 this.Description = Description;
414 this.MethodName =
"WithDeltaY";
418 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
419 public class WithImage : GPALAttribute
422 public WithImage(
string Description =
"")
424 this.Description = Description;
425 this.MethodName =
"WithImage";
429 #endregion SelectorSet Attributes
430 #region Puppeteer Communicator Command Attributes
431 [AttributeUsage(AttributeTargets.Field, Inherited =
false, AllowMultiple =
false)]
432 public sealed class CommandAttribute : Attribute
434 public string CommandString {
get; }
436 public CommandAttribute(
string commandString)
438 CommandString = commandString;
441 #endregion Puppeteer Communicator CommandAttributes
442 #region Experimental Attribute - designate features not completely developed
443 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
444 class InProgressAttribute : GPALAttribute
446 public InProgressAttribute(
string Description =
"")
448 this.Description = Description;
451 #endregion Experimental Attribute - designate features not completely developed