Created
July 15, 2022 14:55
-
-
Save yazdipour/fb1590153ba1f3b3f23427a39edd0faa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function deleteAll() { | |
$('button[data-cy="Delete"]').each( | |
function (index, element) { | |
console.log(index); | |
$(element).click().delay(200); | |
$('button[data-cy="delete-confirm"]').click().delay(200); | |
} | |
); | |
} | |
// Each time you can delete 26 articles in ListView, 21 in GridView. | |
// Load jQuery before hand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment