Can't press element for X seconds

Im trying to press an element for 2 seconds in mobile testing but that didn’t works.

There is my code:

test1.png

Maybe you can use the Robot class:

Robot r = new Robot()
r.mousePress(InputEvent.BUTTON1_MASK)
Mobile.delay(2)
robot.mouseRelease(InputEvent.BUTTON1_MASK)
It is just a guess, because i haven't used mobile testing.

Thanks @Mate Mrse but that didn’t work in Mobile

Finally i solve the problem using that, i hope it can be useful for somebody.

Screenshot_1.png