Table of Contents

Class UiaWindowFlavorElement

Namespace
Ranorex.Plugin
Assembly
Ranorex.Plugin.Uia.dll
public class UiaWindowFlavorElement : UiaFlavorElement
Inheritance
UiaWindowFlavorElement
Inherited Members

Constructors

UiaWindowFlavorElement(AutomationElement, Win32FlavorElement)

public UiaWindowFlavorElement(AutomationElement uiElement, Win32FlavorElement win32FlavorElement)

Parameters

uiElement AutomationElement
win32FlavorElement Win32FlavorElement

Properties

MinPathAttributes

Indicates that the minimum number of attributes to use when creating an RxPath location step for this element. Defaults to 0.

protected override int MinPathAttributes { get; }

Property Value

int

Methods

GetAttributeValue(Element, string)

Needs to be implemented for attribute value read access.

public override object GetAttributeValue(Element element, string name)

Parameters

element Element

The element instance used.

name string

The name of the attribute (lowercased).

Returns

object

The attribute value.

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.

SetAttributeValue(Element, string, object)

Needs to be implemented for attribute value write access.

public override void SetAttributeValue(Element element, string name, object value)

Parameters

element Element

The element instance used.

name string

The name of the attribute (lowercased).

value object

The attribute value to be set.