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

How to retrieve the URL of a link from page

5 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul Khader
Top achievements
Rank 1
Abdul Khader asked on 27 Dec 2016, 10:19 AM

Hi Team,

 

How can I retrieve the URL of a hyperlink on a application ? Can this be achieved by Telerik test Studio ? if yes, how ?

 

Attached the screenshot for reference

 

Thanks

Abdul

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 27 Dec 2016, 12:40 PM
Hi Abdul,

This can be achieved very easily in Test Studio.

1. Extract the href attribute of the link. See that article which describe the process in details.

2. You can use that extracted variable to bind some other step. You can also access the variable via a coded step:

Log.WriteLine(GetExtractedValue("NameOfTheVariable").ToString());

This will log the href into the log of Test Studio.

Let me know if that helps.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 27 Dec 2016, 12:43 PM

Thanks Boyan, i think this should work !!!

 

Will try and come back if any Issues

 

 

0
Boyan Boev
Telerik team
answered on 27 Dec 2016, 12:50 PM
Hi Abdul,

Please take your time and let me know if an additional assistance is needed.

Thank you!

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 03 Jan 2017, 05:21 PM

Thanks Boyan. This is working

0
Boyan Boev
Telerik team
answered on 05 Jan 2017, 09:38 AM
Hi Abdul,

I am glad that it works.

Should you have additional questions please do not hesitate to contact us again.

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