question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bring back automatic retry for all Find methods

See original GitHub issue

I 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 Retrys. Something like this did already exist in FlaUI 1.3 to some extend.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bitbonkcommented, Aug 31, 2018

@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.

0reactions
Roemercommented, May 19, 2020

I’ve actually added the Retry.Find methods. Feel free to check them out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found