本帖最后由 ycfyzjl 于 2021-8-25 21:37 编辑
- <div class="blockcode"><blockquote>local 查找1 = nodeLib.findOne({class="android.widget.TextView",package="com.insen.jdactivityassistant1",text="执行1"},true)
- local 查找2 = nodeLib.findOne({class="android.widget.TextView",package="com.insen.jdactivityassistant2",text="执行2"},true)
- local 查找3 = nodeLib.findOne({class="android.widget.TextView",package="com.insen.jdactivityassistant3",text="执行3"},true)
- local games ={"查找1","查找2","查找3"}
- for i=1,#games do
- print("i:"..i,games[i])
- if games[i] ~= nil then
- print(games[i])
- sleep(500)
- nodeLib.click(games[i])
- sleep(500)
- end
- end
复制代码
我这步nodeLib.click(games)怎么改? |