add some scripts
This commit is contained in:
@@ -35,4 +35,11 @@ module.exports = function(__runtime__, scope){
|
||||
scope.currentActivity = function(){
|
||||
return __runtime__.info.getLatestActivity();
|
||||
}
|
||||
|
||||
scope.waitActivity = function(activity, delay){
|
||||
delay = delay || 200;
|
||||
while(scope.currentActivity() != activity){
|
||||
sleep(delay);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user