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

How to automate iteration through dynamic URLs

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Debi
Top achievements
Rank 1
Debi asked on 14 Feb 2017, 02:40 PM

My task is to write a test script to navigate to our news page, click on the first story (url), click a button to return to the news topics, and iterate through all of the urls contained on the page.  Not only are the names dynamic, but they change daily in quantity as well, so I need it written in a generic way as opposed to recording it by clicking on the actual link.

I tried writing a step to navigate to the href that contains the generic 'starts with' portion of the URL, my next plan is to extract the full text of that URL, click URL, then click 'return to news topics'.  Is this something that can be written in Telerik or must I rely on writing code? I'm just honestly lost trying to determine the best way to go about this without resorting to writing code.  Any assistance or advice would be greatly appreciated.

Thank you!

Debi

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 17 Feb 2017, 09:06 AM
Hi Debi,

Telerik Test Studio allows you to extract attributes of an element and store into a variable to be used later within the test. This variable could be then data bound and it seems like this will handle the described scenario. 

Please give it a try as described in the shared article. I hope it will suit your requirement. 

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