Class ElementsGenerator
Inheritance
System.Object
ElementsGenerator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.WebAii.Design
Assembly: ArtOfTest.WebAii.Design.dll
Syntax
public static class ElementsGenerator
Fields
INDEPENDENT_KEY
Declaration
public const string INDEPENDENT_KEY = "$$Independent$$"
Field Value
System.String
|
s_controlTypeLookup
Declaration
public static Dictionary<string, Type> s_controlTypeLookup
Field Value
System.Collections.Generic.Dictionary<System.String, System.Type>
|
Methods
CreateElementDescriptor(String, ITargetElement, INodeData, Type)
Declaration
public static ElementDescriptor CreateElementDescriptor(string descriptorName, ITargetElement element, INodeData page, Type customType)
Parameters
System.String
descriptorName
|
ITargetElement
element
|
INodeData
page
|
System.Type
customType
|
Returns
ElementDescriptor
|
CreateElementDescriptor(String, String, ITargetElement, INodeData, Type)
Declaration
public static ElementDescriptor CreateElementDescriptor(string descriptorName, string elementFriendlyName, ITargetElement element, INodeData page, Type customType)
Parameters
System.String
descriptorName
|
System.String
elementFriendlyName
|
ITargetElement
element
|
INodeData
page
|
System.Type
customType
|
Returns
ElementDescriptor
|
CreateElementsForDescriptor(INodeData, AutomationDescriptor, ref Rectangle, Boolean)
Declaration
public static Dictionary<string, ElementDescriptor> CreateElementsForDescriptor(INodeData page, AutomationDescriptor descriptor, ref Rectangle location, bool shouldGetRectangle = true)
Parameters
INodeData
page
|
AutomationDescriptor
descriptor
|
System.Drawing.Rectangle
location
|
System.Boolean
shouldGetRectangle
|
Returns
System.Collections.Generic.Dictionary<System.String, ElementDescriptor>
|
CreatePage(String, String, UserSettings)
Declaration
public static PageUri CreatePage(string title, string path, UserSettings settings)
Parameters
System.String
title
|
System.String
path
|
UserSettings
settings
|
Returns
PageUri
|
FindUsingBackupXPath(String, ITargetElement, out ITargetElement)
Declaration
public static ITargetElement FindUsingBackupXPath(string path, ITargetElement root, out ITargetElement failureLocation)
Parameters
System.String
path
|
ITargetElement
root
|
ITargetElement
failureLocation
|
Returns
ITargetElement
|
GenerateFriendlyName(ITargetElement)
Declaration
public static string GenerateFriendlyName(ITargetElement element)
Parameters
ITargetElement
element
|
Returns
System.String
|
PromptForElementsNamesOnAdd(List<ITargetElement>, Boolean, out Boolean, String)
Declaration
public static List<string> PromptForElementsNamesOnAdd(List<ITargetElement> elements, bool promptNameOnAddElement, out bool toAdd, string ownerTag = null)
Parameters
System.Collections.Generic.List<ITargetElement>
elements
|
System.Boolean
promptNameOnAddElement
|
System.Boolean
toAdd
|
System.String
ownerTag
|
Returns
System.Collections.Generic.List<System.String>
|
SetCurrentScheme(IdentificationOptionsScheme)
Declaration
public static void SetCurrentScheme(IdentificationOptionsScheme scheme)
Parameters
IdentificationOptionsScheme
scheme
|