i am trying to capture the URL from the open browser and
store it. pls give me solution how we can do this in QTP.
thanks
Answer Posted / neeraj chauhan
Hi All
Set oDesc=Description.create()
oDesc("html tag").value="INPUT"
oDesc("micclass").value="Link"
set
CollectionOfLinks=Browser("vBrowser").page("vPage").childobjects(oDesc)
NumberOfLinks=CollectionOfLinks.count()
for i=0 to NumberOfLinks
Print CollectionOfLinks(i).GetRoProperty("href or url")
Next
If still you face any problem, reply me.
Thanks and Regards
Neeraj Chauhan
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is CMMP and CMMH?
What is the basic concept of qtp?
please any one can explain the keyword driven framework. with gmail example.
What is quicktest professional (qtp)?
Hi All, How to Compare two strings character by character in QTP
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
How did you use regular expressions in QTP and also in WR?
banking domain description for software tester for interview
after initiating one project for testing, when exacltly QTP tester role starts?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
How many ways we can parameterize data in quicktest professional?
What is QTP and the use of QTP in TD?
Explain types of descriptive programming?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?