Add retry logic if element not found