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

WaitOnElementsTimeOutProperty does not function properly

3 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Snehal
Top achievements
Rank 1
Snehal asked on 17 Mar 2011, 02:28 PM
If i set WaitOnElementsTimeOutProperty to increase the wait time and play the recorded test it does not consider the set time and fails that step

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 19 Mar 2011, 05:05 PM
Hi Snehal,
   I'd like to reproduce this issue. Please record a test against a publicly accessible URL (e.g. Google). Make sure the test exhibits this behavior. Then send me the test along along with info about the failing step.

I will try to analyze the issue

Hope to hear from you soon!

Greetings,
Stoich
the Telerik team
0
Pravallika
Top achievements
Rank 1
answered on 04 Feb 2015, 10:36 AM
I'm also facing the same issue. Attached are the two images for the test and coded steps.
When i record and set the time more than 30 seconds and convert the test step into code, the value is set to 30000 by default.
Even if I change the time in coded step, telerik recorder doesnot seem to wait for the expected time interval during runtime..

Please suggest an alternative for explicit wait.
0
Boyan Boev
Telerik team
answered on 09 Feb 2015, 08:59 AM
Hi Pravallika,

This is done by design. When using an UI step it works like expected, however when using code for example:

Pages.Bing.BingDiv.Wait.ForExists/Visible(30000);

It will not reach the WaitForExist/Visible method at all, ti will fail at the BingDiv part with element not found. Since it fails with element not found in this case the global Wait On Elements will apply not the Wait.ForExists();

Refer to the screenshot attached.

In order to achieve this you should find the element in code and wait for it.

Hope this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Snehal
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Pravallika
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or