This is very important bug that already here for more than 1 years (at least what i know) and that need to be resolved asap but somehow the developer dont solve it, this bug make website can detect the bot
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