Created
May 28, 2020 20:11
-
-
Save geofflangenderfer/f68c35b095e03587b32278141d563b7a to your computer and use it in GitHub Desktop.
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
const sleep = (milliseconds) => { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)) | |
} | |
for (let i=0;i<1000;i++) { | |
sleep(1000).then(() => { | |
let startEmberId = 60 | |
document.querySelector(`#ember${startEmberId+i}`).click() | |
console.log(`clicked #ember${startEmberId+i}`) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment