screen.exists(元素对象或图片)
等用于 selector.exists()
-- 是否存在元素id为abc的元素 print(screen.exists({resourceId='abc'})) -- 是否存在截图图片abc print(screen.exists('abc'))