Appium MAC 版 appium Inspector 启动不

徐飞飞 · 2016年09月21日 · 最后由 达峰的夏天 回复于 2016年09月22日 · 2314 次阅读

切换到 selendroid 模式后启动不了

安装完后就一直报错,我哪里设置的不对吗?

info: --> GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/orientation {}
info: [debug] Proxying command to localhost:20000
info: [debug] Making http request with opts: {"url":"http://localhost:20000/wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/orientation","method":"GET"}
info: [debug] Proxied response received with status 200: {"sessionId":"d94743b7-1405-770b-041b-1077beabac04","status":0,"value":"PORTRAIT"}
info: <-- GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/orientation 200 12.767 ms - 82 
info: --> GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/screenshot {}
info: [debug] Proxying command to localhost:20000
info: [debug] Making http request with opts: {"url":"http://localhost:20000/wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/screenshot","method":"GET"}
info: [debug] Proxied response received with status 200: {"sessionId":"d94743b7-1405-770b-041b-1077beabac04","status":0,"value":"AA=="}
info: <-- GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/screenshot 200 15.582 ms - 78 
info: --> GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/contexts {}
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: /Users/xufeifei/Documents/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s e17cfef1 shell "cat /proc/net/unix"
info: [debug] Available contexts: undefined
info: [debug] []
info: [debug] Making http request with opts: {"url":"http://localhost:20000/wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/window_handles","method":"GET"}
info: [debug] Available contexts: ["NATIVE_APP"]
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP"],"sessionId":"d94743b7-1405-770b-041b-1077be
abac04"}
info: <-- GET /wd/hub/session/d94743b7-1405-770b-041b-1077beabac04/contexts 200 56.643 ms - 86 {"status":0,"value":["NATIVE_APP"],"sessionId":"d94743b7-1405-770b-041b-1077beabac04"}
info: [debug] [SELENDROID ERR] length=58; index=58
info: [debug] [SELENDROID ERR]  at com.lbe.security.service.provider.internal.AppOpsAdapter$1.getDefaultOp(AppOpsAdapter.java:279)
info: [debug] [SELENDROID ERR]  at com.android.internal.app.IOpsCallback$Stub.onTransact(IOpsCallback.java:68)
info: [debug] [SELENDROID ERR]  at android.os.Binder.execTransact(Binder.java:446)
info: [debug] [SELENDROID ERR] length=58; index=58
info: [debug] [SELENDROID ERR]  at com.lbe.security.service.provider.internal.AppOpsAdapter$1.getDefaultOp(AppOpsAdapter.java:279)
info: [debug] [SELENDROID ERR]  at com.android.internal.app.IOpsCallback$Stub.onTransact(IOpsCallback.java:68)
info: [debug] [SELENDROID ERR]  at android.os.Binder.execTransact(Binder.java:446)

共收到 3 条回复 时间 点赞

@xdf 能帮忙看一下什么问题吗?你说的 MACACA 框架我看了也是和 appium 一样基于 UIatomator,我想获取 toast 提示,但是切换 selendriod 模式就出错了,希望能帮我解决问题

Macaca 废除 selendroid 模式了

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