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 to disable the pop ups through QTP using a script
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
How will internal and external links be validated and updated? how often?
what is ODC and GDC?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
what is the difference btn risks & Therads in the Test plan documentation?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
When do go for loop condition in test?
When Recovery scenario actually starts while testing the application?
whow much strong on VB and C?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
What is keyword view in qtp?
Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........
hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....