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
Answer / chandu
try this
x=Browser("ALL Interview .com ::").GetROProperty("openurl")
msgbox x
| Is This Answer Correct ? | 4 Yes | 0 No |
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 |
How will you send values to a cell in a webtable using QTP?
How many types of recording modes in the qtp?
What is throw object?
in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser
in order to start automation testing what we should require (entry level to automation testing)
what is descriptive.create()in qtp?
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
what could go wrong with test automation?
How u perform Batch Program in QTP?
What all challenges you have faced during automation and how you have resolved it?
By using QTP can we record any log files written by the application which is in execution?