21 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
22 public class GPALAttribute : Attribute
24 public string Description {
get;
set; }
25 public string MethodName {
get;
set; } =
null;
29 public string Submenu {
get;
set; } =
null;
30 public GPALAttribute(
string Description =
"")
32 this.Description = Description;
35 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
36 class SingleUseAttribute : GPALAttribute
38 public SingleUseAttribute(
string Description =
"")
40 this.Description = Description;
43 #region GPAL Menu Names
44 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
45 class DataAttribute : GPALAttribute
47 public DataAttribute(
string Description =
"")
49 this.Description = Description;
52 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
53 class CallbackAttribute : GPALAttribute
55 public CallbackAttribute(
string Description =
"")
57 this.Description = Description;
60 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
61 class BrowserAttribute : GPALAttribute
63 public BrowserAttribute(
string Description =
"")
65 this.Description = Description;
68 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
69 class ActionAttribute : GPALAttribute
71 public ActionAttribute(
string Description =
"")
73 this.Description = Description;
76 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
77 class HelperAttribute : GPALAttribute
79 public HelperAttribute(
string Description=
"")
81 this.Description = Description;
84 [AttributeUsage(AttributeTargets.All)]
85 class FluentAttribute : GPALAttribute
87 public FluentAttribute(
string Description =
"")
89 this.Description = Description;
92 [AttributeUsage(AttributeTargets.All)]
93 class SettingsAttribute : GPALAttribute
95 public SettingsAttribute(
string Description =
"")
97 this.Description = Description;
100 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
101 class GPALSettingsAttribute : GPALAttribute
103 public GPALSettingsAttribute(
string Description =
"")
105 this.Description = Description;
108 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
109 class ModifierAttribute : GPALAttribute
111 public ModifierAttribute(
string Description =
"")
113 this.Description = Description;
116 [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method, Inherited =
true)]
117 class ConstantAttribute : GPALAttribute
119 public ConstantAttribute(
string Description =
"")
121 this.Description = Description;
124 [AttributeUsage(AttributeTargets.All)]
125 class FormsAttribute : GPALAttribute
127 public FormsAttribute(
string Description =
"")
129 this.Description = Description;
132 [AttributeUsage(AttributeTargets.All)]
133 class ComponentAttribute : GPALAttribute
135 public ComponentAttribute(
string Description =
"")
137 this.Description = Description;
140 [AttributeUsage(AttributeTargets.All)]
141 class ElementAssitantAttribute : GPALAttribute
143 public ElementAssitantAttribute(
string Description =
"")
145 this.Description = Description;
148 [AttributeUsage(AttributeTargets.All)]
149 class KeysAttribute : GPALAttribute
151 public KeysAttribute(
string Description =
"")
153 this.Description = Description;
156 [AttributeUsage(AttributeTargets.All)]
157 class FileAttribute : GPALAttribute
159 public FileAttribute(
string Description =
"")
161 this.Description = Description;
164 [AttributeUsage(AttributeTargets.All)]
165 class ScrollAttribute : GPALAttribute
167 public ScrollAttribute(
string Description =
"")
169 this.Description = Description;
172 [AttributeUsage(AttributeTargets.All)]
173 class WaitAttribute : GPALAttribute
175 public WaitAttribute(
string Description =
"")
177 this.Description = Description;
180 [AttributeUsage(AttributeTargets.All)]
181 class WorkflowAttribute : GPALAttribute
183 public WorkflowAttribute(
string Description =
"")
185 this.Description = Description;
189 #endregion GPAL Menu Names
191 #region Parameter Attributes
193 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
194 class EnumAttribute : GPALAttribute
197 public EnumAttribute(
string Description =
"In GPAL Studio, present menu of enum names")
199 this.Description = Description;
202 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
203 class DirectoryAttribute : GPALAttribute
206 public DirectoryAttribute(
string Description =
"")
208 this.Description = Description;
211 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
212 class IntAttribute : GPALAttribute
215 public IntAttribute(
string Description =
"")
217 this.Description = Description;
220 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
221 class URLAttribute : GPALAttribute
224 public URLAttribute(
string Description =
"")
226 this.Description = Description;
229 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
230 class GPALFileAttribute : GPALAttribute
233 public GPALFileAttribute(
string Description =
"")
235 this.Description = Description;
238 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
239 class SelectorAttribute : GPALAttribute
242 public SelectorAttribute(
string Description =
"")
244 this.Description = Description;
247 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
248 class BrowserTypeAttribute : GPALAttribute
251 public BrowserTypeAttribute(
string Description =
"")
253 this.Description = Description;
256 #endregion Parameter Attributes
257 #region Interface Attribute
258 class InterfaceAttribute : GPALAttribute
260 public InterfaceAttribute(
string Description =
"")
262 this.Description = Description;
265 #endregion Interface Attribute
266 #region SelectorSet Attributes
268 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
269 public class WithCSS : GPALAttribute
272 public WithCSS(
string Description =
"Method name used to handle css value")
274 this.Description = Description;
275 this.MethodName =
"WithCSS";
279 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
280 public class WithXPath : GPALAttribute
283 public WithXPath(
string Description =
"Method name used to handle x path")
285 this.Description = Description;
286 this.MethodName =
"WithXPath";
290 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
291 public class WithValue : GPALAttribute
294 public WithValue(
string Description =
"")
296 this.Description = Description;
297 this.MethodName =
"WithValue";
301 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
302 public class MatchValue : GPALAttribute
305 public MatchValue(
string Description =
"")
307 this.Description = Description;
308 this.MethodName =
"MatchValue";
312 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
313 public class WithText : GPALAttribute
316 public WithText(
string Description =
"")
318 this.Description = Description;
319 this.MethodName =
"WithText";
323 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
324 public class MatchText : GPALAttribute
327 public MatchText(
string Description =
"")
329 this.Description = Description;
330 this.MethodName =
"MatchText";
334 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
335 public class MatchSrc : GPALAttribute
338 public MatchSrc(
string Description =
"")
340 this.Description = Description;
341 this.MethodName =
"MatchSrc";
345 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
346 public class MatchHRef : GPALAttribute
349 public MatchHRef(
string Description =
"")
351 this.Description = Description;
352 this.MethodName =
"MatchHRef";
356 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
357 public class MatchPlaceholder : GPALAttribute
360 public MatchPlaceholder(
string Description =
"")
362 this.Description = Description;
363 this.MethodName =
"MatchPlaceholder";
367 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
368 public class WithSelectorName : GPALAttribute
371 public WithSelectorName(
string Description =
"")
373 this.Description = Description;
374 this.MethodName =
"WithSelectorName";
378 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
379 public class WithOffsetX : GPALAttribute
382 public WithOffsetX(
string Description =
"")
384 this.Description = Description;
385 this.MethodName =
"WithOffsetX";
389 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
390 public class WithOffsetY : GPALAttribute
393 public WithOffsetY(
string Description =
"")
395 this.Description = Description;
396 this.MethodName =
"WithOffsetY";
400 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
401 public class WithDeltaX : GPALAttribute
404 public WithDeltaX(
string Description =
"")
406 this.Description = Description;
407 this.MethodName =
"WithDeltaX";
411 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
412 public class WithDeltaY : GPALAttribute
415 public WithDeltaY(
string Description =
"")
417 this.Description = Description;
418 this.MethodName =
"WithDeltaY";
422 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
423 public class WithImage : GPALAttribute
426 public WithImage(
string Description =
"")
428 this.Description = Description;
429 this.MethodName =
"WithImage";
433 #endregion SelectorSet Attributes
434 #region Puppeteer Communicator Command Attributes
435 [AttributeUsage(AttributeTargets.Field, Inherited =
false, AllowMultiple =
false)]
436 public sealed class CommandAttribute : Attribute
438 public string CommandString {
get; }
440 public CommandAttribute(
string commandString)
442 CommandString = commandString;
445 #endregion Puppeteer Communicator CommandAttributes
446 #region Experimental Attribute - designate features not completely developed
447 [AttributeUsage(AttributeTargets.All, Inherited =
true)]
448 class InProgressAttribute : GPALAttribute
450 public InProgressAttribute(
string Description =
"")
452 this.Description = Description;
455 #endregion Experimental Attribute - designate features not completely developed