Last active
January 6, 2019 05:57
-
-
Save lordgraysith/609a1f2f8fadec8505fb94063d054536 to your computer and use it in GitHub Desktop.
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
function openTransactions() { | |
const drawers = document.getElementsByClassName('openDrawerButton') | |
const drawersArray = [].slice.call(drawers) | |
const recursivelyOpen = function(index) { | |
if (index < drawersArray.length) { | |
drawersArray[index].click() | |
setTimeout(recursivelyOpen, 5000, index + 1) | |
} | |
} | |
recursivelyOpen(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment