isonic1
unread,Apr 22, 2013, 1:27:05 PM4/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
Hey guys - I've hacked around with appium iOS for a while and now I'm playing with android. Have had a couple of issues that I've run into and thought I'd ask here for help/answers. I'd appreciate any help anyone can give on the below questions. Thanks.
1. Send keys command doesn't appear to work. e.g. @driver.find_elements(:tag_name, :textField)[5].send_keys "test" . Getting "NoMethodError: undefined method `send_keys' for []:Array". This works on iOS appium. I can run "@driver.execute_script 'mobile: keyevent', keycode: 31" which will execute a key command. Is this the only way of typing keys for right now?
2. How do I stop appium form timing out? e.g. "info: Didn't get a new command in 60 secs, shutting down...". I'm using ruby irb to debug and setup my test script.
3. Anyone have luck getting google maps "com.google.android.maps" running on target = Android 4.2.2 API 17? My app requires google maps and I want to run the Intel HAX emulator for speed.
4. Is running the appium server via "node server.js" the only way of testing android apps outside of the test example apps? Whenever I run with $ appium I get the below error when running my test script.
$ appium --no-reset -V (Tried with --fast-reset too.)
info: [ADB] Using adb from /Applications/adt-bundle-mac-x86_64/sdk/platform-tools/adb
info: [ADB] Getting connected devices...
error: Error: Command failed: Android Debug Bridge version 1.0.31
/bin/sh: line 1: devices: command not found
error: uncaughtException date=Mon Apr 22 2013 12:42:32 GMT-0400 (EDT), pid=73614, uid=501, gid=20, cwd=/Users/user/appium, execPath=/usr/local/bin/node, version=v0.10.3, argv=[node, /usr/local/bin/appium, -p9033, --no-reset, -l, --app, /Users/user/appium/sample-code/apps/myapp/bin/myapp-debug.apk, --device-ready-timeout, 60, --app-pkg, com.ridharge.android.myapp, --app-activity, view.SplashActivity, -V], rss=31051776, heapTotal=18635008, heapUsed=11207240, loadavg=[2.28955078125, 1.724609375, 1.880859375], uptime=1281458, trace=[column=18, file=/usr/local/lib/node_modules/appium/uiautomator/adb.js, function=null, line=306, method=null, native=false, column=7, file=/usr/local/lib/node_modules/appium/uiautomator/adb.js, function=, line=466, method=null, native=false, column=7, file=child_process.js, function=ChildProcess.exithandler, line=638, method=exithandler, native=false, column=17, file=events.js, function=ChildProcess.EventEmitter.emit, line=98, method=EventEmitter.emit, native=false, column=16, file=child_process.js, function=maybeClose, line=732, method=null, native=false, column=11, file=child_process.js, function=, line=945, method=null, native=false, column=17, file=events.js, function=Socket.EventEmitter.emit, line=95, method=EventEmitter.emit, native=false, column=12, file=net.js, function=Pipe.close, line=451, method=close, native=false], stack=[TypeError: Cannot read property 'length' of undefined, at /usr/local/lib/node_modules/appium/uiautomator/adb.js:306:18, at null.<anonymous> (/usr/local/lib/node_modules/appium/uiautomator/adb.js:466:7), at ChildProcess.exithandler (child_process.js:638:7), at ChildProcess.EventEmitter.emit (events.js:98:17), at maybeClose (child_process.js:732:16), at Socket.<anonymous> (child_process.js:945:11), at Socket.EventEmitter.emit (events.js:95:17), at Pipe.close (net.js:451:12)]