Thank you for the question.
The first approach I'd give a go is to wait until my control gets in needed condition. That will avoid any need of Sleep() calls or the loop you tried as well. Here is some code from our samples coming with the distribution:
// Wait for the guidance to be fully visible.
// In this application they use the Opacity of the
// "GuidanceCanvas" to show/hide the guidance.
Canvas guidanceCanvas = app.FindName<Canvas>(
guidanceCanvas.Wait.For(canvas => canvas.Opacity == 1);
// Make sure we got the correct # of guidance popups
// The application pops 15 overlays on top
IList<FrameworkElement> guidanceOverlays = guidanceCanvas.Find.AllByType(
Assert.IsTrue(guidanceOverlays.Count == 15);
// Now hide the guidance
// Wait for the guidance to be hidden
guidanceCanvas.Wait.For(canvas => canvas.Opacity == 0);
Just to clarify on your test, after you get the combobox you need to click and then call .Refresh() since you need the drop down to get open, is that correct? If so please use the same Wait.For approach to sync the test with the application and make sure the drop down is open. This will also refresh the control internally.
Can you please give that a go and let us know whether that helps?
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items