Skip to content

Instantly share code, notes, and snippets.

@ssig33
Created June 17, 2016 08:46
Show Gist options
  • Save ssig33/a00014b31ba38399a48848255c3d4d0b to your computer and use it in GitHub Desktop.
Save ssig33/a00014b31ba38399a48848255c3d4d0b to your computer and use it in GitHub Desktop.
f = (i)=>{
var q = '#contentTabList_'+String(i)+'_myx > div > div > div > div > div.myx-fixed-left-grid-col.myx-col-left > div > div.myx-column.myx-span7.myx-span-last > div > a > span > button > span'
document.querySelector(q).click();
setTimeout(()=>{
document.querySelector('#contentAction_download_myx > div > div > div > div > div > div > span').click()
setTimeout(()=>{
document.querySelector('#dialogButton_ok_myx > span > button > span').click()
},1000);
}, 1000);
}
f2 = (i)=>{
console.log(i);
f(i);
if(i <= 70){
setTimeout(()=>{
f2(i+1);
}, 50000);
}
}
f2(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment