Last active
October 13, 2021 00:41
-
-
Save ym/8a640cc33a2b89e3a7b12a560a2bc602 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
(async () => { | |
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
const deleteTransaction = async () => { | |
// click the fucking table | |
$('.field-date')[1].click(); | |
await sleep(1000); | |
// click the fucking delete button | |
$('button[data-automation-id="button-delete"]').click(); | |
await sleep(1000); | |
// delete the fucking transaction | |
$('.qboDialog#yesNoDialog button.primary').click(); | |
await sleep(3000); | |
} | |
// loop through the transactions | |
for (let i = 0; i < $('.field-date').length; i++) { | |
await deleteTransaction(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment