Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. var allDownloads = new Array();
  2. currentItem = 0;
  3. function downloadNext() {
  4. if(currentItem==allDownloads.length) {
  5. return;
  6. }
  7. console.log(currentItem);
  8. console.log(allDownloads[currentItem])
  9. allDownloads[currentItem].click();
  10. setTimeout(downloadNext,2000)
  11. currentItem=currentItem+1;
  12. }
  13.  
  14.  
  15. $("td[title='Ver']").each(function(i, obj){
  16. allDownloads[allDownloads.length] = $(obj).find("input");
  17. });
  18.  
  19. console.log(allDownloads);
  20. downloadNext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement