From def127b93feb626db0cd32b4be60438012573305 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 15 Aug 2023 17:49:30 +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 48c77ba7c..48f4aab82 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;