Skip to content

Instantly share code, notes, and snippets.

@dallonf
Created August 7, 2013 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dallonf/6178837 to your computer and use it in GitHub Desktop.
Save dallonf/6178837 to your computer and use it in GitHub Desktop.
jQuery Monkey Testing
// Paste this into the Developer Console for any project that uses jQuery
function stopMonkey() {
clearInterval(monkey);
}
monkey = setInterval(function() {
var $els = $('body').find('*:visible');
var rand = Math.round(Math.random() * $els.length);
$els.eq(rand).click();
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment