Copyable Example Code
You can paste this into the code editor; still verify target image, region, color, text, and timing values in your own device flow.
-- Check several texts in one area
local labels = { "Start", "Stop", "Settings" }
Snap.screenRefresh()
local region = Region()
for _, label in ipairs(labels) do
local match = region:findText(label)
if match then
toast("Found: " .. label .. " -> " .. match:getX() .. "," .. match:getY())
else
toast("Not found: " .. label)
end
end