Inspecting iOS with Appium 1.6.0+

Thought I would share some info on inspecting layouts for iOS 10 / Xcode 8 when installing Appium 1.6+ via npm. Looks like there are a lot of people with this issue and could use the tip. Feel free to link this post in questions posted elsewhere

The latest is still on an old version so that inspector does not work. The WebDriverAgent Inspector does not work with default installation since this is on a fork of the facebook version. To fix this you need to remove the appium fork and clone in the facebook one. There is still one other issue, which is you cannot properly install the WebDriverAgent from within the appium directory. Here is a script to help get things working (assuming you are on mac since you have to test iOS)

brew install node      # get node.js
npm install -g appium  # get appium
npm install wd         # get appium client
cd /Users/Shared/
rm -rf WebDriverAgent
git clone
cd WebDriverAgent
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver
rm -rf WebDriverAgent
mv /Users/Shared/WebDriverAgent .

This should install appium, get the WDA in the shared folder to install and then remove old WDA before copying in new one. At this point when you run a test you should be able to inspect any layout at http://localhost:8100/inspector

1 Like