I have a dialog comfirming ok or cancel, the view id of the button ok is found but the coordinates are wrong and the touch()
does not work on the button ok. Culebra can click on the button ok but only using DIP or PX unit. But I would like to avoid using coordinates.
So I try with the following codes and it works but is it a coincidence or is there really any relationship?
button_id = vc.findViewById('id/button1')
coord = button_id.getCenter()
device.touchDip(coord[0], coord[1])