Mac OS, Appium app - can not lunch inspector

2,474 views
Skip to first unread message

dimarouk

unread,
Jan 21, 2014, 6:33:40 PM1/21/14
to appium-...@googlegroups.com
Appium inspector can not start android emulator

I'm trying to start my appium inspector on the emulator with no luck.
It takes few minutes to come up with the error:

Could Not Launch Appium Inspector

Could not start a new session

Be sure the Appium server is running with an application opened by using the "App Path" parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.


but nothing more. The appium console is not providing much more:


debug: Appium request initiated at /wd/hub/status

info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.14.2","revision":"113e796b850b28e7066fe472faf8554b73b6299d"}}}

debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/sessions
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{}}
error: A valid device type is required in the capabilities list
error: Failed to start an Appium session, err was: Error: A valid device type is required in the capabilities list

GET /wd/hub/status 200 1ms - 144b
info: Responding to client with success: {"status":0,"value":[]}
GET /wd/hub/sessions 200 1ms - 32b
info: Got configuration error, not starting session
info: Cleaning up appium session
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: A valid device type is required in the capabilities list)","origValue":"A valid device type is required in the capabilities list"},"sessionId":null}
POST /wd/hub/session 500 4ms - 262b

debug: Appium request initiated at /wd/hub/status

info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.14.2","revision":"113e796b850b28e7066fe472faf8554b73b6299d"}}}

debug: Request received with params: {}

GET /wd/hub/status 200 1ms - 144b


Sometimes after the error, when I try again the inspector starts, can take a snapshot of the screen, but still can not locate elements or anything like that.
All the checkboxes, checked, and the values are correct.

I know it used to work a while back I remember I recorded a script, unfortunately I messed up my environment, when put everything back - inspector not working.

OS: OSX Maverick
Java: 1.7 & 1.6 (system configured to 1.7)
Running Android Checks

✔ ANDROID_HOME is set to "/Developer/android-sdk-mac/adt-bundle-mac-x86_64"
✔ JAVA_HOME is set to "/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home."
✔ ADB exists at /Developer/android-sdk-mac/adt-bundle-mac-x86_64/platform-tools/adb
✔ Android exists at /Developer/android-sdk-mac/adt-bundle-mac-x86_64/tools/android
✔ Emulator exists at /Developer/android-sdk-mac/adt-bundle-mac-x86_64/tools/emulator
✔ Android Checks were successful.

✔ All Checks were successful

I assume this is the problem one:
debug: Request received with params: {"desiredCapabilities":{}}
But I don't know how to control it in Appium app.

I know the setup is fine(both on emulator and real device) as I can run some tests against device/emulator and they work fine. But I need the inspector to be able to extract the xpath for the elements.

I don't even know where to start to look. so any suggestions or indeed a solution will be much appreciated!


dimarouk

unread,
Jan 21, 2014, 7:07:46 PM1/21/14
to appium-...@googlegroups.com
Something more to note...

I noticed, that it looks as if the app ignores anything I put on the screen, whatever I select, check or fill in Android or iOS.
I trie removing the app and installing again - no luck :(

Wayne Ma

unread,
Jan 22, 2014, 4:28:27 PM1/22/14
to appium-...@googlegroups.com
Are you on the latest appium UI 0.14.2?   I get the same problem too.  roll back to 0.13.0, and things work again.

There is some bugs in the latest version

dimarouk

unread,
Jan 22, 2014, 4:36:26 PM1/22/14
to appium-...@googlegroups.com
Tried all that...
Installed the 0.14.2 within hours, went back as 0.11 - no luck.

I actually uninstalled the app (deleted from app from finder).
Deleted anything to do with appium from ~/Library and ~/Application

Then installed the appium again - what I noticed id had picked up from somewhere the previous setting - so something is "dirty" on my machine - any suggestions on how to COMPLETELY remove appium and any traces of it? I'm qute goo with windows-cleenup, but have no idea what to do on a mac.

Wayne Ma

unread,
Jan 22, 2014, 4:53:20 PM1/22/14
to appium-...@googlegroups.com
this change might cause all the breakage in the new version. https://github.com/appium/appium/releases/tag/v0.14.0
Not sure why it's required and it is causing incompatibility issues with old appium script.
  • require 'device' cap and fail without it

dimarouk

unread,
Jan 22, 2014, 5:01:08 PM1/22/14
to appium-...@googlegroups.com
that was my first thought (I've seen some commits which specifically check for the device version or something... can't find the page now), but then I still have problems with older versions.

The difference I can see is in pre0.14 versions it takes like 5 minutes before the error, in 0.14 I get the error almost instantly.

So any mac experts - what do I need to clear, delete remove to make sure all the caching is cleared.

Alex Austin

unread,
Feb 3, 2014, 12:38:09 PM2/3/14
to appium-...@googlegroups.com
I just found this thread. I posted on a different one that I am having this same problem. I also do notice that the previous settings are being cached. Has anybody been able to resolve this?

an...@motherapp.com

unread,
Feb 4, 2014, 9:54:56 PM2/4/14
to appium-...@googlegroups.com
I uninstalled 0.14.x and installed 0.13 (DMG) version again, this problem was fixed, FYI.

dimarouk

unread,
Feb 5, 2014, 3:40:00 PM2/5/14
to appium-...@googlegroups.com
Unfortunately this didn't work for me :(. I installed the backwards versions until 10, no luck. Still have the problem.

Noah Blumberg

unread,
Feb 10, 2014, 2:52:12 PM2/10/14
to appium-...@googlegroups.com
i have the same issue with 0.14.2 and now 0.15.0
0.13.0 works for me.

Aleksei Petrovski

unread,
Feb 13, 2014, 1:57:23 PM2/13/14
to appium-...@googlegroups.com
Getting "A valid device type is required in the capabilities list" when trying to launch inspector on iPhoneSimulator on appium version 0.15.0

Any updates on it?

my system:
Mac mountain lion.
Xcode 7.0.2

yogeesh babu

unread,
Feb 21, 2014, 10:39:25 AM2/21/14
to appium-...@googlegroups.com

Hi All,

 

I'm facing the same issue on launching Appium, using Mac 10.9 with appium version 0.13.0.

weird is observed same issue after launching Appium, on both Appium versions 0.13.0 and 0.15.0.

Please let me know if there is any way to fix this.

Message has been deleted

Mahshadul Alam

unread,
Aug 10, 2014, 9:30:57 AM8/10/14
to appium-...@googlegroups.com
Hi I am having same issue with 
Mac 10.9.3
Xcode 5.1.1

any suggestion?

Thanks,
Mahshad
Reply all
Reply to author
Forward
0 new messages