You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in another issue, here is the suggestion to support being able to ignore certain exceptions when not expecting exceptions.
It would be similar to what can be done with the Selenium API:
// Waiting 30 seconds for an element to be present on the page, checking// for its presence once every 5 seconds.Wait<WebDriver> wait = newFluentWait<WebDriver>(driver)
.withTimeout(Duration.ofSeconds(30L))
.pollingEvery(Duration.ofSeconds(5L))
.ignoring(NoSuchElementException.class);
@joel-costigliola
Great 👍🏻
I'd like to contribute.
Before I begin I'd like to clarify. When doesNotThrowAnyExceptionExcept(IOException.class) is called and a subclass of IOException is thrown, then the case should pass, shouldn't it.
Feature summary
As discussed in another issue, here is the suggestion to support being able to ignore certain exceptions when not expecting exceptions.
It would be similar to what can be done with the Selenium API:
Example
That is how it can look in AssertJ:
The text was updated successfully, but these errors were encountered: