I am trying to build a flow which will measure a time between switching views in outlook 365, e.g. clicking on Inbox (on the left, where we have folders list) then copy first word from email which is loaded and paste it into new email. Then go back into Sent items folder, copy first word from email which is loaded and paste into the same new email.
What I want to achieve is to have flow which will be error prone - I mean I can use it independent of what current folder is marked in outlook. E.g. I can have calendar view opened now and when I start flow I want it to work as described. But should also work when I start it when active view\folder in outlook is To-Do list
What I want to click first is:

The problem is that UI elements which I have in Power Automate Desktop have definition with full "path" starting from
'Window \'Calendar - ... - Outlook\'']['Button \'Mail\''
or
'Window \'To-Do List - ... - Outlook\''

Any ideas ?:)