Appium appium 如何通过 driver 清除应用数据信息,或者缓存

战 神 · 2017年10月12日 · 最后由 战 神 回复于 2017年10月16日 · 2476 次阅读

driver.execute("clear com.tcl.hawk.ts"); 这样用报错啊

共收到 3 条回复 时间 点赞

you can't run adb commands directly using appium client. I saw a request for such functionality maybe a half year ago and the conclusion was that if there is some specific adb command user want to execute and it is not covered with appium functionality, you have to do it on your own.
issue
代码里自己调 adb 来用执行吧,说起来我还不知道 execute 这方法怎么用

ref
这个方法传的应该不是 adb 的指令

解决了 直接用 Runtime()来执行 adb 命令

战 神 关闭了讨论 10月16日 17:00
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册