[HELP] Shaking emulator is not working ..that is required to drag and drop the emulator in screen ..

724 views
Skip to first unread message

Muthu Selvan

unread,
Jun 19, 2013, 7:47:55 PM6/19/13
to calaba...@googlegroups.com



Hi All  ,

Required to move or shake or drag and drop the entire emulator in screen ,  ( This is required for automation purpose to recored the score .)

I recored the script by shaking the emulator but its not playback ..just waiting in terminal and emulator is not moving .

is there any other way in calabash-ios to shake or move or drag and drop the emulator on screen  .

Please find the attached screen shot for detailed about the application and let me know the solution .

Thanks ,
Muthu Selvan SR
Screen Shot 2013-06-19 at 4.30.59 PM.png

Krukow

unread,
Jun 20, 2013, 5:52:11 PM6/20/13
to calaba...@googlegroups.com
You can't do that, I'm afraid. Only touch events *inside* the app are recorded.

You could do record_begin then activate Shake Gesture in the hardware menu and then record_end (but I haven't tried)

Muthu Selvan

unread,
Jun 20, 2013, 10:57:35 PM6/20/13
to calaba...@googlegroups.com
Please let me know ...How to activate "Shake Gesture"n the hardware menu , is it option in emulator or mac OS ? 

mean time , i am writing java code (completed coding part using java robo class )  and trying to integrate with ruby ..kindly let me know your thought on this ...

Thanks ,
Muthu Selvan SR  

Krukow

unread,
Jun 30, 2013, 8:56:13 AM6/30/13
to calaba...@googlegroups.com
On Friday, June 21, 2013 4:57:35 AM UTC+2, Muthu Selvan wrote:
Please let me know ...How to activate "Shake Gesture"n the hardware menu , is it option in emulator or mac OS ? 

You mean the iOS simulator? It's there in the menu bar of the simulator. You're not talking about Android, right?
 

mean time , i am writing java code (completed coding part using java robo class )  and trying to integrate with ruby ..kindly let me know your thought on this ...

I'm not sure what you mean, I'm sorry. 

Muthu Selvan

unread,
Jun 30, 2013, 11:58:50 AM6/30/13
to calaba...@googlegroups.com
Hi , 

Please find the answer as in below 

Krukow >> 
You mean the iOS simulator? It's there in the menu bar of the simulator. You're not talking about Android, right?
Muthu Selvan SR >> Yes , its IOS  ,what is the command should i use to activate "Shake Gesture"n the hardware menu ?

Thanks,
Muthu Selvan SR

Alexander Khozya

unread,
Jul 8, 2013, 3:44:09 AM7/8/13
to calaba...@googlegroups.com
To perform this you can fire shake event using AppleScript. As a reference how to use it from Ruby you can use https://gist.github.com/Satoridigital/3742748

Rafael Daudt

unread,
Feb 10, 2015, 11:04:40 AM2/10/15
to calaba...@googlegroups.com
This works for me on both the simulator and a physical device (iOS 8.1, Xcode 6.1.1, Calabash 0.12.2):

uia('target.shake();')
Reply all
Reply to author
Forward
0 new messages