XtraPopupMenu Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

XtraPopupMenu provides a scripting interface to the context menu created with the Developer Express XtraBars Suite.

Supported component versions: Developer Express XtraBars ver. 3.6.x, 6.1, 6.3, 7.x, 8.2 - 10.1, 11.2, 12.1 - 18.1.3, 19.1.3, 20.1.6, 21.1.3.

Declaration

TestObj.XtraPopupMenu

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

Applies To

Objects that correspond to .NET controls.

View Mode

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

Property Value

An XtraPopupMenu object that provides access to the control’s context menu.

Remarks

Using the returned object, you can select items from the context menu, but it must be opened on screen first. You can open the menu by sending an Application keypress to the window, or by calling ClickR on it. See the XtraPopupMenu object description for more information on available menu actions.

Note for XtraForm users: When testing context menus in a .NET application that uses Developer Express XtraForm forms, the following problem may occur: If a test invokes a popup menu and selects a command from it several times in succession, the “Cannot obtain the popup menu” error may occur at a certain iteration during the test run. The problem is caused by the specifics of the XtraForm forms. If you encounter this problem, we recommend that the tested application’s developers contact Developer Express support for assistance in resolving the problem.

To access main menus created with the Developer Express XtraBars Suite, use the Window.XtraMainMenu property.

The XtraPopupMenu property is only available if the Developer Express Control Support plugin is installed. Otherwise, this property is absent in the window’s property list.

Example

To view an example that demonstrates how to use the XtraPopupMenu property, see Working With XtraBars Controls.

See Also

Simulating Menu Actions
Testing .NET Applications
StripPopupMenu Property
UltraPopupMenu Property
MainMenu Property
PopupMenu Property
SystemMenu Property

Highlight search results