Skip to content

Instantly share code, notes, and snippets.

@smirn0v
Created January 15, 2013 20:03
Show Gist options
  • Save smirn0v/4541538 to your computer and use it in GitHub Desktop.
Save smirn0v/4541538 to your computer and use it in GitHub Desktop.
random tap
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
target.delay(2);
window.tapWithOptions( { x:160.0, y:370.0 } );
target.delay(5);
for(i=0;i<=100000;i++)
{
xPoint = Math.floor(Math.random()*319+1)
yPoint = Math.floor(Math.random()*479+1)
window.tapWithOptions( { x:xPoint, y:yPoint } );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment