This is exactly what I was refining, this is the way it can be done.
The only thing to do to make this work is that open a second UiPath window and from there use “Click Button” Activity to get the target/selectors.
Cut/Copy Paste this “Click” Activity back into your original workflow within a “Parallel” activity, something like this:
Screenshot of “Parallel” Activity
I used an “invoke workflow activity” to run your flow, but for you @Adi, you’ll have your message box there along with the click activity.
Also, to ensure things work smoothly, I’d suggest to add a delay via the properties of the “click button” activity. Under “DelayBefore” write say “1000” since it takes it in microseconds and 1000 MS = 1 second.
Let us know what works for you (and what doesn’t. ).
All the Best!