Created
August 7, 2013 21:22
-
-
Save dallonf/6178837 to your computer and use it in GitHub Desktop.
jQuery Monkey Testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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