Farhat Naz Biya
Farhat Naz Biya

Reputation: 105

Appium inspector is not launching for Android

I followed each and every step given in http://code.tutsplus.com/tutorials/an-introduction-to-appium--cms-23861

Appium app has started fine with appium $

Please see Android Settings

When I click Launch Button see output in image below Output

On clicking Appium inspector button, this error is displayed. enter image description here

Please help me to figure out what's going wrong?

Upvotes: 0

Views: 5436

Answers (18)

Thejus Krishna
Thejus Krishna

Reputation: 1899

You can also use AndroidViewClient tools - dump and culebra to find out the IDs. It is helpful in places where you don't have a UI (for example, if you are running on a server version of Ubuntu).

Upvotes: 0

koteswara D K
koteswara D K

Reputation: 628

i had a same issue i solved it by setting the package name which is in the cradle build and the LaunchActivity name with full package name then it solved my problem

Upvotes: 0

Shiv
Shiv

Reputation: 505

wait for the appium start with the given configuration. Launch the app with appium once and then press inspector. inspector will be launch.

Or Use uiautomatorviewer tool present in Android SDK

Upvotes: 0

akhilesh gulati
akhilesh gulati

Reputation: 128

  1. specify the path.
  2. start the server with correct app_path and package value.
  3. wait for the server to start and than click the inspector button

Upvotes: 0

Z. Ziv
Z. Ziv

Reputation: 115

First start the server (from command line or GUI),

if you're using command line.. wait for this line : [Appium] Appium REST http interface listener started on 0.0.0.0:4723

if you're using GUI, you'll see all device capabilities are loaded, then wait for the same line as in command line : [Appium] Appium REST http interface listener started on 0.0.0.0:4723

Then, you can use the inspector.

Upvotes: 0

Pradap Pandian
Pradap Pandian

Reputation: 406

SDK --> Tools --> UI Automator. This will be more helpful than inspector in Appium.

Keep the app in a path which doesn't contain space or special characters on the foldername or app name. Then select the app path.

Upvotes: 1

Rohan
Rohan

Reputation: 859

The Inspector won't work unless you Launch the server . 1.Launch the server 2.Run the test 3. Wait for the screen you want to inspect 4.Then Start inspector. You can also refresh the page in inspector depending the screen you need .

Upvotes: 0

kkashyap1707
kkashyap1707

Reputation: 531

I would suggest use UI Automator viewer instead of Appium Inspector.

Pre-requisites :- Connect your android device with the system or start an emulator on which you wants to find the object of the elements.

Steps to Launch UI Automator :-

  1. Go to Android SDK location
  2. Click on Tools
  3. Click on "uiautomatorviewer"

It will launch a new pop-up window. Click on "Green icon" on the left side of the screen. It will load the connected mobile device preview.

Upvotes: 1

Stipe
Stipe

Reputation: 510

I have noticed that you have checked Device Name but you have left that text field empty. So please write some text in that field e.g. TestDevice Please see here: Android Device Name

Also, see if you have added correct path into Android SDK Path Please see example: ANDROID SDK PATH

Upvotes: 0

viralpatel
viralpatel

Reputation: 98

you have to wait for the appium start with all the configuration.once you get status code 200(in green color). then press inspector. image inspector will be launch.

Upvotes: 0

Pooja Potghan-Kadam
Pooja Potghan-Kadam

Reputation: 315

When you launch your Appium server, yo have to wait some time until all your settings are loaded. Please refer snapshot below:

enter image description here

Now click on Inspector, it will start.

Upvotes: 0

Daz
Daz

Reputation: 13

Could you please share the appium logs please. Is your error likes "error: Failed to start an Appium session, err was: Error: Could not find a connected Android device."?

By looking at your images, I think you checked deviceName capability, but you did't gave a name for it. If you share appium logs I can give a direct answer.

BTW for Android app automation, I prefer to use "uiautomatorviewer". It is fast and easy.

Upvotes: 0

mbob
mbob

Reputation: 630

I'd rather use

uiautomatorviewer

which comes with android sdk tools.

Upvotes: 2

Bruce Tu
Bruce Tu

Reputation: 1

Try enabling the "Pre-launch with Application" checkbox under Settings. That way the Android Emulator will launch with your app installed and loaded. Once the Android Emulator is running, then try opening the Appium Inspector.

Upvotes: 0

Chandrashekhar Swami
Chandrashekhar Swami

Reputation: 1780

android uiautomator does better job than appium inspector . I would suggest to use uiautomator . @Farhat Naz Biya now you can accept this ans . cheers :)

Upvotes: 9

econoMichael
econoMichael

Reputation: 677

You're not waiting long enough for the Appium server to start. You need to see

info: Welcome to Appium v.1.4.13 etc
info: -> GET /wd/hub/status {}

Then you can click the inspector button.

Upvotes: 1

Pavan Kumar
Pavan Kumar

Reputation: 11

You have to give package name and activity name that you are looking to launch the app in appium.

Upvotes: 1

Naman
Naman

Reputation: 31858

You are missing the Package for your application there. You would have to provide that parameter through the UI in case you want to use the appium inspector independently.

Upvotes: 1

Related Questions