SAP context menu, how do i wait for it?

Hi, i’m working on a process that uses SAP, and I have to extract an excel sheet, so I have to right-click a grid and press “Spreadsheet…”.
But i’m having problems “waiting” for the context menu to show up. I added a 2 seconds delay and that works, but i’d like a more elegant solution than a delay.

This is the selector I get from recording:
wnd aaname=‘Context’ app=‘saplogon.exe’ cls=’#32768’ />

The problem, (to me) is that the selector for the context menu isn’t very explicit, or i’m getting it the wrong way (in uipath explorer it says “invalid ui node” if I try to select it), so if I try a “on element appear” for example, it shows the error “the ui element is no longer valid”.

Is there a workaround to get the proper selector, or use the one I have to wait for the element?


On Element Appear is the right activity to use in your case.
What options did you selected in the properties panel of this activity.
Only WaitVisible is to be checked.

I tried it again, both with WaitVisible checked and unchecked and it’s working. I don’t know what could’ve changed from yesterday. Sorry for the useless topic then :stuck_out_tongue: