Last active
November 30, 2019 16:21
-
-
Save Akhi1/bda310164f01cd9f1f2bb7d60d149eec to your computer and use it in GitHub Desktop.
You can run this code on chrome console and it will automatically fill the verification code and clicks the verify button until the webpage accepts one
This file contains 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
// 1. Go to the chrome console | |
// 2. Paste this below code and press enter | |
var i=1000; | |
function verifyMOBI() { | |
// data to execute | |
document.getElementById("ENTER THE INPUT BOX ID").value = i; | |
document.getElementById("ENTER THE VERIFY BUTTON ID").click(); | |
i++; | |
} | |
function runner() { | |
verifyMOBI(); | |
setTimeout(function() { | |
runner(); | |
}, 5000); | |
} | |
runner(); | |
// 3. You can use inspect element tool to capture the input box and button ID's | |
// 4. You can change the timeout delay(in the above code I used 5000ms) | |
// 5. Update the code in order to generate random numbers or use other efficient algorithm | |
// 6. Try it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment