Question

does appium have inspector for android that runs on ubuntu? If so, how to install it. I have did enough searching. I'm pointed to MAC version of appium inspector, but not able to find if for Ubuntu. Any help much appreciated.

Was it helpful?

Solution

basically we need inspector for viewing name, id and other property of element in the android app, which I can use for test automation with appium.

We can use "Ui Automator Viewer" which we can find in android sdk folder "sdk/tools/uiautomatorviewer".

OTHER TIPS

If you have already installed android sdk and configured path skip step 1 and go to step 2 directly.

Step1: Download SDK for linux. Extract to home folder in linux

Then configure your sdk path in .bashrc file

To configure Type gedit .bashrc at terminal

Opens an text editor, type the folowing and save

  export ANDROID_HOME="$HOME/adt/sdk"

  export JAVA_HOME="/usr/bin/java"

  export PATH=${PATH}:~/adt/sdk/tools

  export PATH=${PATH}:~/adt/sdk/platform-tools

Step2: Then type uiautomatorviewer at your terminal to start uiautomatorviewer and get details of elements you want to inspect.

You will find UI Automator Viewer in your SDK folder under >tools>bin>uiautomatorviewer. Launch it using terminal. In terminal, cd to the path and lauch uiautomatorviewer by entering ./uiautomatorviewer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top