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

WaitonElements time out

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Quest
Top achievements
Rank 1
Quest asked on 21 Nov 2014, 01:53 AM
I am trying to implement wait on a simple assertion and have set the "WaitonElementsTimeOut" to 30 second , attached is the image. But the assertion does not wait for 30 seconds and just moves ahead.

I know i am doing something utterly stupid please help.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 Nov 2014, 07:25 PM
Hello Quest,

What is the error message reported by Test Studio? Is it "element not found" or "verification failed"?

If it's the latter then Test Studio is doing exactly what you told it to do. If found the target element to verify within the 30 second time limit, looked at the text and determined it doesn't meet the verification.

What you probably actually want is to convert your Verify into a Wait For. A Wait For will wait for the text to successfully satisfy the condition being tested against. A Verify will wait for the target element to simply exist then look only once and, if not correct, immediately gives up.

To change your Verify into a Wait For, right click on the test step and select Change Role -> Set As Wait. Once done you can then control the waits timeout in the Properties pane. See the two attached screen shots.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Quest
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or