lock -> unlock doesn't work
I have the impression, that the unlock mechanism doesn't work so my tests use to stop prematurely.:
2014-10-21 09:50:58 +0000 Debug: target.lockForDuration("2.00243217498064") 2014-10-21 09:51:01 +0000 Debug: target.springboard().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.10,y:0.90}}}) 2014-10-21 09:52:18 +0000 Stopped: Script was stopped by the user
Anyone experiencing similar issues?
Yes I'm experiencing the same problem.
The device screen is locked by UIATarget.lockForDuration(). This method successfully locks the screen but fails to unlock it after the specified time has passed. Since CrashMonkey is using UI Automonkey, the following issue may be of interest: jonathanpenn/ui-auto-monkey#11
The problem can be mitgiated by providing a custom json config which doesn't include the lock event. A sample config can be found in Pull Request #13