Capture/dump selectors on crash?

Hi

Is it possible to somehow take a snapshot of the selectors available at a given time, i.e. at a crash.

Let’s say an unexpected popup appears during runtime and it is rare and hard to reproduce in test environment. In order to handle it, you could do a image activity, in case you have a crash screenshot, but if it was possible to get a dump of selectors at point of crash, it would be possible to build the selector from that dump making a more stable solution without having to make the error re-appear.

Any suggestions?