Unable to see elements hierarchy/tree using Appium Inspector(iOS) [SOLVED]

Hi everyone,

I am using appium 1.6.3 with Xcode 8.2.1, Appium GUI 1.5.3 and 2 devices with iOS 10.2.1 and 10.0.1. I am able to open the Appium Inspector and i am seeing the app screens but i am not able to see the elements and cannot select/highlight a specific element.

I reinstalled the appium gui but it’s still not working. When i execute the tests everything is fine(elements are visible), but i cannot identify new elements using the inspector.

If i search for a specific xpath/name using the Locator/Value option i get the correct answer but the element is not highlighted and the elements hierarchy remains empty. Do you have any idea? It’s a native app and everything worked fine untill 2 days ago.

Did you get a new iOS build. If yes then you can ask dev. what exactly they changed. Some times screens are blocked due to security reasons so that the users can’t take the screen shots.

I tried using an old build (that worked at some point) but i had the same problem. No hierarchy displayed. It could be from the xcode version? I replaced 8.2 with 8.2.1 a few days ago.

Why not use Appium Desktop?

I found the solution. You need to go to /usr/local/lib/node_modules/appium from terminal and then install or reinstall xcuitest driver : npm install appium-xcuitest-driver.