From ed9af393b70f51bdc744a941da251346cac640b4 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 19 Aug 2023 01:50:53 +0300 Subject: [PATCH] Fix flaky automation tests --- src/NzbDrone.Automation.Test/PageModel/PageBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NzbDrone.Automation.Test/PageModel/PageBase.cs b/src/NzbDrone.Automation.Test/PageModel/PageBase.cs index 76c98cce1..575aba7d0 100644 --- a/src/NzbDrone.Automation.Test/PageModel/PageBase.cs +++ b/src/NzbDrone.Automation.Test/PageModel/PageBase.cs @@ -40,6 +40,10 @@ namespace NzbDrone.Automation.Test.PageModel var element = d.FindElement(By.ClassName("followingBalls")); return !element.Displayed; } + catch (StaleElementReferenceException) + { + return true; + } catch (NoSuchElementException) { return true;