How to automate this: Refresh the page continuously in 5sec interval until a element is visible in the web

I would use visualAssert + Repeat/If - For more details please see