citrusframework / citrusframework/yaks
Feature Request: Retry Logic for Selenium Steps
- Dominant language
- Java
- Stars
- 90
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to have a retry logic for SeleniumSteps. We've implemented our own Workaround like so:
runner.run(RepeatOnErrorUntilTrueTemplate.builder()
.indexName(indexName)
.maxRepeats(maxRepeatsOnError)
.autoSleep(autoSleep)
.actions(Arrays.asList(actionBuilders))
.build());
We've also added an own wrapper for RepeatOnErrorUntilTrue using the Catch Action too. This was necessary since SeleniumSteps may throw Selenium exceptions, but RepeatOnErrorUntilTrue only catches the CitrusRuntimeException. By using the CatchAction without expected exception list we get the desired behaviour since the CatchAction will throw our required CitrusRuntimeException in that case.
Kind regards,
Stefan
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.