You can use the “Select menu option in window” action instead of configuring the flow to click the UI elements of the menu option you want to choose.
For example, I want to choose File > Clear fields. I can select the “Select menu option in window” action from the action pane, then select “Add UI element” in the “Select menu option in window” dialogue box. A new dialogue box “Tracking session” will open, asking you to add your UI elements. Select “clear fields” from the “file” drop down menu of the application and click “done”. Back at the “Select menu option in window” dialogue box, click Save.
Running the flow will allow you to automatically clear the fields!