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.
-- Click text inside a region
local label = "Start"
local x, y, w, h = 0, 800, 1080, 400
Snap.screenRefresh()
local region = Region(x, y, w, h)
local param = FindParam.timeout(3000)
local tapped = region:clickText(label, param)
if tapped then
toast("'" .. label .. "' tapped")
wait(300)
else
toast("Text not found: " .. label)
end