I am using the WebDriverWait.Until() method in my script to wait for an element to disappear from the UI.
For this, there is the ExpectedConditions class and I could have used its InvisibilityOfElementLocated method, but it is now deprecated.
In my implementation of the WebDriverWait.Until() method, I am passing a
Func delegate which has the wait logic defined inside it.
What I observe is that the exceptions, like NoSuchElementException is ignored(which I assume is due to the default whitelisted exceptions).
But I have not used the IgnoreExceptionTypes method to explicitly whitelist any exception.
I want the flow to break out of the Until method's check(which kind of keeps looping until one of the below mentioned event occurs) once an exception like NoSuchElementException is encountered.