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!