Dump All Selectors on SystemException

I’m sure most developers will agree that the most common System Exception encountered is a “selector not found” error.

When running a live process, I am often left with the error, and an exception screenshot. Often the screenshot will show a message/error window that appeared that isn’t handled in my workflow. If the message/error is repeatable then I can run the same steps in my development environment, and use the UiExplorer to get the selectors for the window.

The problem arises when the error/message cannot be easily replicated, so there is no way to know the selectors in order to add handling into the workflow.

Would it be possible to add a feature where you could get UiPath to dump a tree (XML?) of all selectors that are on the screen at the time of a System Exception?

Thank you for your suggestion. I added it to our internal ideas tracker for our team to consider.