在好友列表对比心形图片可以进入需要帮忙的好友的界面。接下来该怎么办呢?
用图片对比有点难,因为能量球颜色是不断变化的,下方的文字的背景也是不断变化的。
用控件的方法,能量球是button类型的控件,但是id,text,desc等属性都是空的。我又发现能量球的父控件的id是“J_barrier_free”,而且这个控件的子控件正好就只有能量球。理论上找到这个控件就应该行了。但是我用id,idContains,idEndWith都找不到J_barrier_free。而且后面加上.exists(),如id("J_barrier_free").exists()还会报错:
20:52:04.629/E: Thread[ScriptThread-22[/storage/emulated/0/脚本/mysl.js] (Spawn-0),5]: Wrapped java.lang.IllegalStateException: nodeInfo.viewIdResourceName must not be null (/storage/emulated/0/脚本/mysl.js#41)
Wrapped java.lang.IllegalStateException: nodeInfo.viewIdResourceName must not be null
at helpCollect (/storage/emulated/0/脚本/mysl.js:41:0)
at /storage/emulated/0/脚本/mysl.js:104:0
这是怎么回事呢?