Created
August 26, 2015 13:20
-
-
Save tygern/55a01a85a82ebc96e2c2 to your computer and use it in GitHub Desktop.
Automated User Creation - fill form
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
| var timestamp = (new Date()).getTime(); | |
| var username = 'user-' + timestamp; | |
| var users = localStorage.getItem("users"); | |
| if (users) { | |
| users = users + "," + username; | |
| } else { | |
| users = username; | |
| } | |
| localStorage.setItem("users", users); | |
| document.getElementById('username').value = username; | |
| document.getElementById('password').value = 'testing123'; | |
| document.getElementById('email').value = userName + '@example.com'; | |
| document.getElementById('firstName').value = 'Test'; | |
| document.getElementById('lastName').value = 'User'; | |
| document.getElementById('submitButton').focus(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment