StripPopupMenu Property

Applies to TestComplete 14.92, last modified on September 16, 2021

Description

The property provides a scripting interface to the context (popup, right-click) menu that is created using the Microsoft MenuStrip Class Library. This menu is associated with .NET windows and control via their “native” ContextMenuStrip property.

Declaration

TestObj.StripPopupMenu

Read-Only Property A Menu 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

A Menu object that corresponds to the 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 Menu object description for more information on available menu actions.

To access main menus created with the MenuStrip Class Library, use the Window.StripMainMenu property.

The StripPopupMenu property is only available if the Microsoft Control Support plugin is installed and the WindowObj has a context menu created with the MenuStrip library. Otherwise, this property is absent in the window’s property list.

See Also

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

Highlight search results