屏幕是是否存在元素或图片 (screen.exists)

声明

screen.exists(元素对象或图片)

说明

等用于 selector.exists()

示例

-- 是否存在元素id为abc的元素
print(screen.exists({resourceId='abc'}))
-- 是否存在截图图片abc
print(screen.exists('abc'))
powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""