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:
Dialog (MSAA Objects), Form (MSAA Objects), MDIWindow (MSAA Objects) and 3 more objects, Panel (MSAA Objects), Popup (MSAA Objects), ToolWindow (MSAA Objects) « Collapse the list
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 forIAccessible
.
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