Find Locators without using UIAutomatorViewer

Hi all,

Is there any way to find the locators of an element for android without using UIAutomatorViewer?
In My scenario I can’t capture the screen of device when my application is up.

You can start a test and place it in debug mode and run driver.getPageSource() on the views you want. Then maybe copy the result to some place where you can look at the xml returned in a easier way, like https://codebeautify.org/xmlviewer

Thanks Telmo_Cardoso
This Idea is good and it is really Helpfull…but is There any other solution?