Fix flaky automation tests

This commit is contained in:
Bogdan 2023-08-15 17:49:30 +03:00 committed by Qstick
parent c75d398f14
commit def127b93f
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ namespace NzbDrone.Automation.Test.PageModel
var element = d.FindElement(By.ClassName("followingBalls")); var element = d.FindElement(By.ClassName("followingBalls"));
return !element.Displayed; return !element.Displayed;
} }
catch (StaleElementReferenceException)
{
return true;
}
catch (NoSuchElementException) catch (NoSuchElementException)
{ {
return true; return true;