Checkout this article i wrote on how to use WebDriverWaits as retries for more test automation success: https://blog.testproject.io/2021/01/13/using-selenium-webdriver-waits-as-retries-in-your-selenium-tests/. If you haven’t used Waits yet, or you have, but are still having issues with tests randomly failing, this is the right approach for your tests. Enjoy.