iOS: need command to tap and hold to enter "jiggly" mode

Asked by David Blankinship

I was wondering if there is a way to use the core set of Sikuli commands (or, if need be, a Java extension) to simulate a click (tap) and hold gesture in an iOS Simulator environment. This would allow me to enter into the "jiggly" mode and move app icons or kill a running app.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
David Blankinship
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Already tried to use combinations with mouseDown()?

Revision history for this message
David Blankinship (djb-e) said :
#2

Thanks - the region class (and the mouseDown method within it) was definitely the key. I ended up implementing an approach along the lines of the following:

<<
click('${homebutton.id.path}')
region1=find('${welcomescreenwithtestapp.id.path}')
region1.doubleClick('${homebutton.id.path}')
region2=find('${welcomescreenwithtestappactive.id.path}')
region2.mouseMove('${myapp.id.path}')
region2.mouseDown(Button.LEFT)
region2.wait('${deleteworklistdemoapp.id.path}',5)
region2.mouseUp()
click('${deleteworklistdemoapp.id.path}')
click('${homebutton.id.path}')
>>