i am aware these options exist, but when i a copy to clipboard buttons on any website, the text that is supposed to be copied isn't saved and won't appear when i use the get clipboard option
Each asynchronous function started, starts in separate thread.
So in that example you will have 2 threads since 2 asynchronous functions
will be started, each with its own (different) script.
Create a variable called "counter". Than use "is element exist" to check if element exist and update "counter" variable whenever element is missing. Check counter variable in the loop, and fail thread if "counter" hit 3