This is a migrated thread and some comments may be shown as answers.

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

3 Answers 135 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stanislav
Top achievements
Rank 1
Stanislav asked on 02 Nov 2012, 03:26 AM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Nov 2012, 04:25 PM
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
0
Stanislav
Top achievements
Rank 1
answered on 07 Nov 2012, 10:22 PM
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
0
Plamen
Telerik team
answered on 12 Nov 2012, 11:01 AM
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
Tags
General Discussions
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Stanislav
Top achievements
Rank 1
Share this question
or