Skip to content

Instantly share code, notes, and snippets.

@mold
Created February 18, 2024 13:53
Show Gist options
  • Save mold/6d6cb5a3a998728cf7ad329ba92ceba5 to your computer and use it in GitHub Desktop.
Save mold/6d6cb5a3a998728cf7ad329ba92ceba5 to your computer and use it in GitHub Desktop.
function nextRow(i) {
var rows = document.querySelectorAll("#tabAllGrid .row-wrapper");
console.log(i);
// if(i>2){return;}
var cells = Array.from(rows).map((r) =>
r.querySelector(".gridCell:first-child .cell-wrapper")
);
cells[i].click();
setTimeout(() => {
rows[i].querySelector(".btn-group:last-child #action").click();
setTimeout(() => {
rows[i].querySelector(".btn-group:last-child li:nth-child(2) a").click();
i++;
setTimeout(() => nextRow(i), 1000);
}, 500);
}, 500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment