The 'Wait for condition has timed out' exception is occurred

4 posts, 0 answers
  1. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 01 Nov 2012 Link to this post

    Hello all,

    Sometimes, I get the 'Wait for condition has timed out' exception when I try to find all text fields on the form (WPF application): ....Find.AllByType<TextBox>(); Why this happens? Is there any possibility to change the timeout?

    Thank you.

    Kind Regards,
    Stanislav Hordiyenko
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 07 Nov 2012 Link to this post

    Hello Stanislav,

    That is strange. I've went through the code behind and found out that we are not using any timeouts for this method. Are you sure that you are getting 'Wait for condition has timed out' exception on this line of code? The only possible reason I can think of that could explain this error is if this is the very first line in your test. If that is the case, then probably the "client ready timeout" is the one that causes this problem. You can override it via the Manager object like this:
    Manager.Settings.ClientReadyTimeout = 30000;

    If you continue to have difficulty, please provide the test in question so that we can analyze the code and try to determine what is causing the issue.

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 07 Nov 2012 Link to this post

    Hello Plamen,

    Thank you for your reply. I have done as you suggested. I will let you know if I will be experiencing with the same problem in future again. I hope that this will resolve my issue.

    Kind Regards,
    Stanislav Hordiyenko
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 12 Nov 2012 Link to this post

    Hi Stanislav,

    We'll stand by for an update and a sample test if you continue to have difficulty getting this to work.

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top