OpenContextSelect Method

Class

AnyWin class.

Action

Opens a context menu at the specified position and selects the specified menu item.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

OpenContextSelect (x, y, item)
Variable Description
x The horizontal coordinate to open the context menu relative to the control on which this function is called. INTEGER.
y The vertical coordinate to open the context menu relative to the control on which this function is called. INTEGER.
item The menu item to select, such as "Paste" or "#3". LISTITEM.

Notes

If the specified item cannot be found, Silk Test raises the exception E_WINDOW_NOT_FOUND.

This function will not find the correct menu item if the menu item is not a direct child of the control on which this function is called.

Example

OpenContextSelect( 5, 5, "Paste")