NativeObject Property (MSAA Objects)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

You can use the NativeObject property to provide access to accessibility information that the tested application returns for a window. See Implementing MSAA Support Manually.

Declaration

TestObj.NativeObject

Read-Only Property Object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

One of the following:

  • An object that implements the IDispatch interface, or a descendant interface, for example, IAccessible, or

  • Null object (Nothing in VBScript, nil in DelphiScript, None in Python, null in JavaScript, JScript, C++Script and C#Script), in case the window does not implement support for IAccessible.

Remarks

To get a reference to the IAccessible interface, TestComplete calls the Windows API AccessibleObjectFromWindow function. This function requests the IDispatch object from a window. It is supposed, that this object provides accessibility information about the window (IAccessible inherits IDispatch and typecasting is not a problem).

Since, TestComplete requests IDispatch, the application code can return any object that implements the IDispatch interface or its descendants. See Implementing MSAA Support Manually.

See Also

DoDefaultAction Method (MSAA Objects)
Implementing MSAA Support Manually

Highlight search results