Unable to record the right-click action on a Mac operating system

When you record a Web UI test and generate the test on a Mac operating system, the right-click action is not recorded correctly.

Cause

The right-click action is not recorded correctly if the handleEvent method does not pick the correct element.

Resolution

You must perform the following steps:
  1. Open the test script to edit.
  2. Select the step before which you want to add a right-click action in the Test Contents area.
  3. Click Insert and select User action or right-click the selected step and click Insert > User action.

    A user action is added to the test script just before the selected step. The new user action is listed as an error until you select a Graphic object.

  4. Select a Graphic object, and then select Object's Action as Right-click in the User Action Details section.
  5. Add the additional details of the object such as Object identified by and Object location.
  6. Save the test.