I am trying to do some automated UI testing on an app that displays a dialog. This custom dialog is initialized locally in a method and a reference is not kept, so it cannot be accessed using reflection. How can I automate the interactions with this dialog? Is there any way I can get a reference to the current active Window in an application/activity?
ANY help would be really appreciated!