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 are the different attribute used with regular expression?
Are Shared ORs read-only?
How to interact tool & application build in QTP?
What are the recording modes in wave event?
Tell some commonly used Excel VBA functions?
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
What is the architecture of your project? Can any one answer for this question plz........
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
How is the Bitmap checkpoint different from Image checkpoint?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
What is the difference between a Function and Action in QTP?
Differences between quicktest professional (qtp) and winrunner?
Step 3&4 are repeated until an the object in recognised uniquely.
What is the use of text output value in quicktest professional (qtp)?