Single thread Manager.Wait.For()?

2 posts, 0 answers
  1. Hubertus
    Hubertus avatar
    2 posts
    Member since:
    Sep 2015

    Posted 04 Nov 2015 Link to this post

    Dear community!

     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?

      

    Best Regards

    Hubertus

  2. Hubertus
    Hubertus avatar
    2 posts
    Member since:
    Sep 2015

    Posted 06 Nov 2015 in reply to Hubertus Link to this post

    Dear community! 

    After some research we've found out that this was only the case if we were running the code in the debug mode. For whatever reason this behaviour was not reproducable anymore even with the same code . I guess it was some sort of Visual Studio bug.

     

    Best Regards 

    Hubertus

Back to Top