We are using VS13 and the Telerik Framework to test our web client. For finding controls or to wait for specific conditions to be met, we wanted to use ArtOfTest.Common.WaitSync with the Manager.Wait.For<>(...).
We want to use this because we can not be sure if our page is fully loaded at certain points, and this Wait.For would be better than a stupid Thread.Sleep, because we can do things like refreshing the DOM tree each time the predicate is checked.
We experienced that there is a new Thread used for these WaitSynch methods.
Is there a way how to use the functionality of Wait.For<>(); without using different threads, to make the following code really wait until this method either times out or the predicate is true?