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
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
Why script error occur in between recording in qtp?
How to analyzing test results using quicktest professional (qtp)?
What are the various types of Actions in UFT?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
Which functionalities of QTP used in banking project?
What is the XML file architecture ?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
Discuss quicktest professional (qtp) environment?
How to find the difference between 2 dates in qtp?
QTP script is not working on other's machine..
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
Explain the concept of how quicktest professional (qtp) identifies object?
What are the data types in qtp?
To which environments does quicktest professional (qtp) supports?