Click or drag to resize
Ranorex

GlueRuleExecutionStateAddElement Method (FlavorElement, Element)

Adds a flavor element to the bucket and automatically transforms it into an element.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
void AddElement(
	FlavorElement flavorElement,
	out Element element
)

Parameters

flavorElement
Type: Ranorex.CoreFlavorElement
The flavor element to add.
element
Type: Ranorex.CoreElement
When the method returns, contains the newly added Element or null if Action is Replace.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf flavorElement is null and Action is not Replace.
Remarks
If Action is Replace, pass null to remove the SourceElement from the element tree.
See Also