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

Can I use Extracted Text as URL Parameter?

2 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Somuch
Top achievements
Rank 1
Somuch asked on 02 Nov 2012, 03:42 AM
I've gone through the steps of extracting text and assigning it to a variable as shown here: http://www.screencast.com/users/TelerikTesting/folders/Jing/media/c85d61a1-9724-41d4-abc2-03975b07bf23

Now, I want to use that as part of a URL. Is it possible to concatenate text?

Use Case: I use a content system to publish to a site. I want to confirm the content made it to the front end.

I would like to navigate to a url like: http://www.site.com/?contentId=$(extractedValue)

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Nov 2012, 09:57 AM
Hello Somuch,

You can do this with a coded step. Here's a sample code:
ActiveBrowser.NavigateTo("http://www.site.com/?contentId="+Data["extractedValue"].ToString());

Please let us know if we can assist you further.

All the best,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Somuch
Top achievements
Rank 1
answered on 07 Nov 2012, 10:13 PM
That worked... thank you.
Tags
General Discussions
Asked by
Somuch
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Somuch
Top achievements
Rank 1
Share this question
or