ClassTranslatorMatch
Class representing a translator match result for a target element
Definition
Namespace:ArtOfTest.Common.Design.Translation
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class TranslatorMatch
Inheritance: objectTranslatorMatch
Constructors
TranslatorMatch(IControlLocator, ITargetElement, ITargetElement, TranslatorGroup)
Create a new translator match.
Declaration
public TranslatorMatch(IControlLocator translator, ITargetElement targetElement, ITargetElement locatorElement, TranslatorGroup group)
Parameters
translator
targetElement
locatorElement
group
Properties
Group
Gets the TranslatorGroup that owns this translator.
LocatorElement
Gets the element that matched the locator element of this translator. Can be the same as TargetElement, else a parent of target element.
Declaration
public ITargetElement LocatorElement { get; }
Property Value
TargetElement
Gets the target element that was used to match the translator.
Declaration
public ITargetElement TargetElement { get; }
Property Value
Translator
Gets the matching translator instance
Declaration
public IControlLocator Translator { get; }
Property Value
Methods
Clone(ITargetElement)
Clone this Match with a new target.
Declaration
public TranslatorMatch Clone(ITargetElement newTarget)
Parameters
newTarget
Returns
GetIdentifyColor()
Gets the identify color to use for this match.
GetIdentifyIcon()
Gets the identify icon to use for this match.