Table of Contents

Class QtFlavorElement

Namespace
Ranorex.Plugin
Assembly
Ranorex.Plugin.Qt.dll
public abstract class QtFlavorElement : FlavorElement
Inheritance
QtFlavorElement
Derived
Inherited Members

Fields

clazzes

protected readonly string[] clazzes

Field Value

string[]

containerFlavorElement

protected readonly FlavorElement containerFlavorElement

Field Value

FlavorElement

id

protected readonly long id

Field Value

long

mappedClazz

protected string mappedClazz

Field Value

string

objName

protected readonly string objName

Field Value

string

qtBase

protected readonly IQtBaseAutomation qtBase

Field Value

IQtBaseAutomation

remoteObject

protected readonly QRemoteObject remoteObject

Field Value

QRemoteObject

rootContainerFlavorElement

protected readonly Win32FlavorElement rootContainerFlavorElement

Field Value

Win32FlavorElement

z

protected readonly int z

Field Value

int

Properties

DontCache

Indicates that the element should not be cached. Defaults to false.

protected override bool DontCache { get; }

Property Value

bool

ElemId

public long ElemId { get; }

Property Value

long

IsClientRectangle

Determines if the ElementRectangle property returns client or screen coordinates.

public override bool IsClientRectangle { get; }

Property Value

bool

Remarks

To be implemented by the deriving class.

Win32FlavorElement

Gets an equivalent Ranorex.Plugin.IWin32FlavorElementEquivalent.Win32FlavorElement or null if not available.

public virtual Win32FlavorElement Win32FlavorElement { get; }

Property Value

Win32FlavorElement

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.

GetDynamicDescriptors(out IList<AttributeDescriptor>, out IList<ActionDescriptor>)

Gets the descriptors for the dynamic attributes and actions that the element supports.

public override void GetDynamicDescriptors(out IList<AttributeDescriptor> attributes, out IList<ActionDescriptor> actions)

Parameters

attributes IList<AttributeDescriptor>

The dynamic attributes that the element supports.

actions IList<ActionDescriptor>

The dynamic actions that the element supports.

Remarks

The default implementation returns empty lists for attributes and actions. Any overriding method should fill the returned lists.

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.