From ee644485694540767d63407ce03575eb8d02bc1e 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 f833f6492..c9a7e8891 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;