Troubleshooting UIAutomatorViewer

Troubleshooting UIAutomatorViewer

 

1 - Not possible to install UIAutomatorViewer

Solution : Run a failed test on the test bench devices. In the logs, the dump.iux file can be used to view the elements (cross-reference with the failed.png screenshot).


2 - UIAutomatorViewer can’t take screenshot

The application blocked screenshot action.

Solution 1 : use only dump file to find element information

Solution 2 : unblock the prohibition in settings


3 - UIAutomatorViewer error on capturing website in chrome: Error obtaining UI hierarchy

It may appends that UiAutomatorViewer can’t capture website in chrome. In this case, check that it concerns all page or only one.

If the problem persist, you can use the Test Runner command to make the screenshot and dump

testrunner testdslcommand -c "dump"

Next, you can find a screenshot and a dump in the Test Runner results directory. You can then load them into UIAutomatorViewer.