bring back automatic retry for all Find methods
See original GitHub issueI would like to pick up the discussion started here again.
To me it seems very common that UI elements need to build up before the can be found using the AutomationElement.FindXXX(...)
methods. If you have fairly a dynamic (and slow) UI, this can happen a lot and forces you to use Retry
all over the place when finding the elements.
So I suggest that you can optionally enable and configure the retry behavior for all AutomationElement.FindXXX(...)
methods in a block of code or in a test method.
This way we do not need to clutter our test code with a lot of Retry
s.
Something like this did already exist in FlaUI 1.3 to some extend.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to implement retry mechanism into Python Requests ...
This snippet of code will make all HTTP requests from the same session ... HTTPAdapter(max_retries=retries)) s.get("http://httpstat.us/503").
Read more >Error handling and automatic retries in AWS Lambda
When you invoke a function, two types of error can occur. Invocation errors occur when the invocation request is rejected before your function...
Read more >Guide to Spring Retry
In this tutorial, we'll see the various ways to use Spring Retry: annotations, RetryTemplate, and callbacks. Further reading: Better Retries ...
Read more >Implementing Retry with Resilience4j
Retry is a very useful pattern to handle remote operation failures. This article is a deep dive into the Resilience4j retry module and...
Read more >Optimistic locking and automatic retry
In this post, I'm answering a reader's question about how to combine an optimistic locking and automatic retry.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@atresnjo I would have to mirror all the existing
FindXXX
methods as extension methods and add those parameters. I feel that they should be in FlaUI out of the box.I’ve actually added the Retry.Find methods. Feel free to check them out.