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

Answers were Sorted based on User's Feedback



i am trying to capture the URL from the open browser and store it. pls give me solution how we can ..

Answer / chandu

try this

x=Browser("ALL Interview .com ::").GetROProperty("openurl")

msgbox x

Is This Answer Correct ?    4 Yes 0 No

i am trying to capture the URL from the open browser and store it. pls give me solution how we can ..

Answer / 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

More QTP Interview Questions

How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

0 Answers  


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


what is vss and cvs what is main difference b/w these two

3 Answers  


How to give Table check points?

4 Answers   ssinformatics,


HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people

3 Answers   GE,






how can we compare descriptive programing with a regular expression

0 Answers  


How do Parameterization and Data-Driving relate to each other in QTP?

0 Answers  


what is qtp automation frame work,what is the use of that frame work?

64 Answers   Cap Gemini, IBM, iGate, TCS,


I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?

5 Answers  


What is BPT?

2 Answers   Allied Group,


How can you capture(Read) the values from a Table?

1 Answers  


what is option explicit?

5 Answers  


Categories