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

what are the drawbacks for record and payback in qtp

3 Answers  


On what document base Descriptive programming is written if build is not yet ready ?

0 Answers  


What is the difference between gettoproperty and settoproperty?Explain with an example?

4 Answers   QQS, Satyam,


Explain the concept of how QTP identifies object.

5 Answers   Ordain Solutions,


What is the Difference between copy to action and call to action?

0 Answers  


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

4 Answers  


how to select particular value from the combobox in the current page which is entred in the previous page editbox after parameterization?

5 Answers   Ordain Solutions,


any one can send me the concepts of qtp

0 Answers  


What are the different types of functions available in qtp and explain ?

0 Answers  


Pls let me know completely about descriptive programming, where it is used, pls explain with a real time example of its occurence and the program code written in qtp.

3 Answers  


What are the versions of qtp,What are the differences b/n them?

1 Answers   TCS,


Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance

0 Answers  


Categories