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
Explain different recording modes?
How to release all resources file from the QTP?
What is the extension of qtp local repository?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
How to record a qtp script ?
Explain the difference between data driven testing and parameterization ?
How may types of defects identify application or your currently working application?pls give me answer..
Mention the different actions types of qtp.
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
can u explain relative path architecture framework in qtp?
What is quick test pro? What is a quick test professional?
how to test Web application using QTP software
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Explain process of smart Identification in QTP?