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...

There are some links on the web page,write a script to
count and click those links and check the text on the page
displayed on clicking the links.

Answer Posted / preethi

Set obj=Description.Create()
obj("micclass").value="Link"
Set links=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj)
countLinks=links.Count
msgbox "Num of links"& links.Count

For i=0 to countLinks
'links(i).click
text= links(i).GetROProperty("Text")
msgbox text
'Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj).
next

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different recording modes?

967


what r the main attributes of test automation?

1977


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

2183


What is the use of running the scripts in Hidden-mode in UFT?

1165


Does QTP record on Objects created on XWindows Environment?

2134


What is QTP’s model for test creation?

1078


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2639


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1866


What is the parameterization?

979


How will you test a keyboard?

1044


What are the types of properties that quick test learns while recording?

973


How to export quicktest professional (qtp) results to an .xls file?

1095


Explain the difference between call to action and copy action?

922


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1926


What contains Data Driven Framework document in qtp?

1898