Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

2003


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

2705


How will you test a stapler?

1149


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3945


What is quicktest professional (qtp window?

1077


Name the different types of recording modes?

1072


What is the script for database check point, bitmapchek point, regular expression ?

2103


In qtp, how you can use xpath to identify objects?

1127


How will internal and external links be validated and updated? how often?

1165


Can we run multiple QTP scripts one after the other without manual intervention? How?

1108


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

1073


What is data driver in qtp?

1074


Explain how Does Run time data (Parameterization) is handled in QTP?

1111


How to save your test using quicktest professional (qtp)?

1157


Why qtp the best testing tool?

1058