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
now RetryerContext is mandatory and should be injected to atlas config
Re-designed Retryer's, now we use global RetryerContext as default
ISExtension (for momentary checking)
now beforeMethod return configuration instance for alteration
fixes:
qameta#81qameta#79qameta#74
In
@Retry
annotation I passNoSuchElementException.class
for ignoring@FindBy(".//div[starts-with(@id, 'some_id')]") @Retry(timeout = 120_000L, ignoring = NoSuchElementException.class) AtlasWebElement someElement();
but then after
DefaultRetryer
initialization,Throwable.class
is added to ignoring listprivate Object invokeWithRetry(MethodInvoker invoker, Object proxy, MethodInfo methodInfo) throws Throwable { DefaultRetryer retryer = (DefaultRetryer)Optional.ofNullable(methodInfo.getMethod().getAnnotation(Retry.class)).map((retry) -> { return new DefaultRetryer(retry.timeout(), retry.polling(), Arrays.asList(retry.ignoring())); }).orElse(new DefaultRetryer(5000L, 1000L, new ArrayList())); retryer.ignore(Throwable.class); ...
that results in ignoring
UnhandledAlertException.class
, which I want to catch and work with in my codeThe text was updated successfully, but these errors were encountered: