Appium Selendroid 屏幕无法滑动

panzhigang · 2014年07月15日 · 最后由 yuge 回复于 2015年05月20日 · 3114 次阅读

android 4.1.1
我使用 appium 的 swipe 操作报错如下:

debug: [SELENDROID] Selendroid started on port 8080
info: --> POST /wd/hub/session/87f2816b-1c7a-947d-2d08-8b36254aa670/execute {"ar
gs":[{"duration":100,"startX":550,"startY":200,"endX":90,"endY":200}],"script":"
mobile: swipe"}
debug: Appium request initiated at /wd/hub/session/87f2816b-1c7a-947d-2d08-8b362
54aa670/execute
debug: Request received with params: {"args":[{"duration":100,"startX":550,"star
tY":200,"endX":90,"endY":200}],"script":"mobile: swipe"}
debug: Responding to client with error: {"status":9,"value":{"message":"The requ
ested resource could not be found, or a request was received using an HTTP metho
d that is not supported by the mapped resource. (Original error: That device doe
sn't know how to respond to 'mobile: 'swipe--it's probably not using Appium's AP
I)","origValue":"That device doesn't know how to respond to 'mobile: 'swipe--it'
s probably not using Appium's API"},"sessionId":"87f2816b-1c7a-947d-2d08-8b36254
aa670"}
info: <-- POST /wd/hub/session/87f2816b-1c7a-947d-2d08-8b36254aa670/execute 500
8.477 ms - 447
info: --> DELETE /wd/hub/session/87f2816b-1c7a-947d-2d08-8b36254aa670 {}
debug: Appium request initiated at /wd/hub/session/87f2816b-1c7a-947d-2d08-8b362
54aa670
debug: Request received with params: {}
info: Shutting down appium session
debug: Stopping selendroid server

请问:4.1 版本该怎样进行滑动??

共收到 1 条回复 时间 点赞

mark 一下,selendroid 源码也看了 n 遍也没找到,看来只能试试调用一下 adb shell input 命令来滑动了

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册