不确定你到底想干什么如果想单纯的用,那么看以下例子
- local ret =
- nodeLib.findAll(
- {
- class = 'android.widget.TextView',
- id = 'com.android.launcher3:id/folder_icon_name',
- package = 'com.android.launcher3'
- },
- true
- )
- if ret ~= nil then
- for i = 1, #ret, 1 do
- if ret.text == '应用' then
- print('找到了')
- end
- end
- end
复制代码
|