I have a list of items and a delete button.
After I clicked deleteBtn, it will delete the first item which is item1.
Then if I refresh the page, it will continue to delete item2...
I realized that it was because everytime it loads this page, it will do this:
// do delete opreation
And if after clicking, no other button is clicked, qa_clicked("deleteBtn") will still be true, so it will keep deleting things.
Is there any way to solve this problem? Any suggestion or advice is also very much appreciated.
Thank you !