Table of Contents

Class MsaaTreeItemFlavorElement

Namespace
Ranorex.Plugin
Assembly
Ranorex.Plugin.Msaa.dll
public class MsaaTreeItemFlavorElement : MsaaFlavorElement
Inheritance
MsaaTreeItemFlavorElement
Inherited Members

Constructors

MsaaTreeItemFlavorElement(int, IAccessible, int, BucketInfo)

public MsaaTreeItemFlavorElement(int level, IAccessible acc, int childId, BucketInfo bucketInfo)

Parameters

level int
acc IAccessible
childId int
bucketInfo BucketInfo

Properties

Children

public override IList<MsaaFlavorElement> Children { get; }

Property Value

IList<MsaaFlavorElement>

Level

public int Level { get; }

Property Value

int

Methods

AddChild(MsaaFlavorElement)

public void AddChild(MsaaFlavorElement child)

Parameters

child MsaaFlavorElement

GetElementCapabilities(Element, out Role, out string[], out string)

Supplies the role, a list of capabilities and a preferred capability names to the caller. This method called when building a new element from the flavor element.

public override void GetElementCapabilities(Element parent, out Role role, out string[] capabilities, out string preferredCap)

Parameters

parent Element

The parent element of the element to be constructed. (for reference only)

role Role

The role the element should have.

capabilities string[]

The list of capabilities the element should have.

preferredCap string

The preferred capability the element should have.

InvokeAction(Element, string, object[])

Needs to be implemented for element action invocation.

public override object InvokeAction(Element element, string name, object[] args)

Parameters

element Element

The element instance used.

name string

The name of the action (lowercased).

args object[]

A list of invocation parameters.

Returns

object

The invocation result. Can be null if the return type is void.

UpdateChildren()

public void UpdateChildren()