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
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
How will you test a stapler?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What is quicktest professional (qtp window?
Name the different types of recording modes?
What is the script for database check point, bitmapchek point, regular expression ?
In qtp, how you can use xpath to identify objects?
How will internal and external links be validated and updated? how often?
Can we run multiple QTP scripts one after the other without manual intervention? How?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What is data driver in qtp?
Explain how Does Run time data (Parameterization) is handled in QTP?
How to save your test using quicktest professional (qtp)?
Why qtp the best testing tool?