Automate right-click action on objects hidden behind runtime window

Sometimes the objects that you want to automate appear behind the bot runtime window. In such cases, the window is minimized and then reactivated after the action is executed enabling you to successfully automate such objects.

When you perform a right-click action on a browser window, the context menu opens. When you try to click any option in this menu, it disappears because after you execute the right-click action, the active browser window changes to a runtime window. As a result, the context menu closes and the bot fails. To automate such scenarios, perform this procedure.

Procedure

  1. Create a window variable.
  2. In the Name field, enter RuntimeWindow.
  3. Select a window and in the Window title field, enter Bot running* and save the updates.
  4. From the Actions pane, double-click or drag the Window > Minimize action.
  5. In the Window field, select the variable RuntimeWindow.
  6. Click Start recording.
  7. From the Recorder window, select the specific browser window.
  8. In the Window field, select the specific browser window.
  9. Execute the Right click action on the specific browser page.
  10. Select any option from the context menu.
  11. From the Actions pane, double-click or drag the Window > Restore action.
  12. In the Window field, select the variable RuntimeWindow.
  13. Save and run the bot.