I apologize - I hadn't read your original post closely enough.
There are a couple of ways to implement WaitForExists style timeouts for your elements in a coded step.
Let's say you have an the following elment: HtmlAnchor a;
One way to wait for it so to do this:
This will wait for 10 seconds. It's possible to pass it the desired timeout as a parameter in miliseconds but currently there's a minor bug which causes this statements to always wait for 10 second. So for instance:
will still wait only 10 seconds. We have this logged so we will fix it in the near future.
Here's a better way to define a Wait in code:
Here new HtmlFindExpression("href=http://www.w3schools.com/HTML/html_links.asp")
creates a new Find Expression for the desired element. If you don't know about Find Expression check out this tutorial:
30000 is the timeout in milliseconds and it will be respected. The third parameter is a boolean value - just leave it at false.
I hope this helps.
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011?
Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.