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


Please Help Members By Posting Answers For Below Questions

Explain different recording modes?

585


How to release all resources file from the QTP?

1055


What is the extension of qtp local repository?

576


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.

1530


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

1808






How to record a qtp script ?

562


Explain the difference between data driven testing and parameterization ?

590


How may types of defects identify application or your currently working application?pls give me answer..

1517


Mention the different actions types of qtp.

575


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.

1516


can u explain relative path architecture framework in qtp?

1562


What is quick test pro? What is a quick test professional?

553


how to test Web application using QTP software

1332


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1614


Explain process of smart Identification in QTP?

598