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

'Wait for URL' - can we use regular expressions in the expected URL?

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 16 Jun 2011, 07:05 PM
When using the Wait for URL step I would like to be able to use a regular expression in the URL because it changes depending on which test server we are hitting.  How can I get this to work?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 22 Jun 2011, 11:40 PM
Hello Jeff,

This will have to be done in a coded step. The standard code would be something like this:

ActiveBrowser.WaitForUrl("Enter URL in properties", true, 5000);


You will need to create and use a RegExp for the URI string.

Best wishes,
Cody
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or