@ptt-bds
Could you provide more details please. Which sites is the problem with and what action? Perhaps you could attach a test project so I can replicate your problem?
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