Fix flaky automation tests

This commit is contained in:
Bogdan 2023-08-19 01:50:53 +03:00
parent 9e1e35cc26
commit ee64448569
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;