Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nihat-js/724870343e9938093282c1336161f5b5 to your computer and use it in GitHub Desktop.

Select an option

Save nihat-js/724870343e9938093282c1336161f5b5 to your computer and use it in GitHub Desktop.
async function clickWithDelay() {
const items = temp1.querySelectorAll("a .option.remove");
for (const item of items) {
item.click();
await new Promise(resolve => setTimeout(resolve, 1000)); // wait 1 second
}
}
clickWithDelay();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment