Handle Context Menu Button Activity

This section describes the alternative method for choosing a context menu element after clicking the Context Menu button in the GUI toolbar.

In some cases, the automation can fail because of the dynamic nature of the function code for the context button.

Perform the following steps to fix this issue.

Procedure

  1. Delete ‘Press Context Button’ and ‘Select Context Menu Item’ steps from the workflow of your automation.

  2. Declare the Context Menu button as a new element in the application tab.

  3. Go back to the automation tab and choose the declared Context Menu button in the ‘Define Screen Activity’ window.

  4. Drag and drop either ‘Select Toolbar MenuItem by Text’ or ‘Select Toolbar MenuItem by Position’.

  5. Enter the value in the input parameter field. If the same value is available in the ‘Context Menu button’ drop-down list, the click operation will be performed.

  6. Save and run the automation.

The following video shows you the alternative method for choosing the context menu element after clicking the Context Menu button in the GUI toolbar.