貌似那个功能有点问题,不知道是不是我的环境有问题,不使用 packagename 启动程序,会报如下错误:
uncaughtException: EXDEV, cross-device link not permitted '/root/tmp/appium114220-28070-7dwazd.tmp' date=Thu Mar 20 2014 15:29:14 GMT+0800 (HKT), pid=28070, uid=0, gid=0, cwd=/usr/local/lib/node_modules/appium, execPath=/usr/local/bin/node, version=v0.10.25, argv=[node, /usr/local/bin/appium], rss=58417152, heapTotal=52044288, heapUsed=18513152, loadavg=[0.35302734375, 0.25927734375, 0.41357421875], uptime=107287.038264064, trace=[column=18, file=fs.js, function=Object.fs.renameSync, line=543, method=fs.renameSync, native=false, column=10, file=/usr/local/lib/node_modules/appium/lib/devices/android/adb.js, function=null, line=465, method=null, native=false, column=7, file=child_process.js, function=ChildProcess.exithandler, line=635, 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=743, method=null, native=false, column=5, file=child_process.js, function=Process.ChildProcess._handle.onexit, line=810, method=ChildProcess._handle.onexit, native=false], stack=[Error: EXDEV, cross-device link not permitted '/root/tmp/appium114220-28070-7dwazd.tmp', at Object.fs.renameSync (fs.js:543:18), at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:465:10, at ChildProcess.exithandler (child_process.js:635:7), at ChildProcess.EventEmitter.emit (events.js:98:17), at maybeClose (child_process.js:743:16), at Process.ChildProcess._handle.onexit (child_process.js:810:5)]
而且报错后会把 app 路径下的文件删除掉。。。
感觉就是没有启动 appium,要在命令行下自行启动,不会自动启动的
#13 楼 @wangyemami 不是所有的控件都会有 ID,让开发加上去就好了
update 去~支持~
这个不错,速度很快,可以试下~不过我没有试过在上面跑 Appium。 http://www.genymotion.com/
#10 楼 @zws20041984 2.x 中文會有問題~正常了,反正遇到這樣的都轉碼一下就成了~我一開始用 Py3 的時候正常的,不需要轉碼~
#5 楼 @zws20041984 我一開始也糾結這塊弄了半天。。。後來恍然大悟- - find by id 要是整個 resource-id 裏面的值,而不是單單的 id, try again~ good luck, 而且 by name 的方法不可以放 id 的~要用 by id~
支持,顶一个~赞~