Im trying to press an element for 2 seconds in mobile testing but that didn’t works.
There is my code:
Im trying to press an element for 2 seconds in mobile testing but that didn’t works.
There is my code:
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