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.

Answers were Sorted based on User's Feedback



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

Answer / 86kris

I agree with the answer by preethi. I guess there should be a small change in the "For loop"

It has to be

For i=0 to countLinks - 1

Rest everything is fine.

Kindly correct me if i am wrong!

Is This Answer Correct ?    7 Yes 0 No

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

Answer / 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

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

Answer / xyz

The question here is to verify the text on the "page" after
clicking the link. I believe the above code will display
the text of the link. Please correct me if I am wrong.
Thank you.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Could some one explain me how to create folder on the desktop from QTP?? This is an interview question

2 Answers   Clinical Soft,


Can anybody help me by sharing the code for checkbox in qtp using vbscript.

2 Answers  


How software automation specialist enter steps in the Expert View?

0 Answers  


How many types of Recordings are there in QTP and what are they?

7 Answers   Dangote, First Indian Corporation,


from where we will retrieve data for data driven tests in qtp?

3 Answers  


vb script for calling one function to the another function

2 Answers  


hi guys this is Keerthi, I am searching for job,so I want to know which questions are intervier asking on QTP&MANUAL&QUALITY CENTER,can u send Any one questions&Answers to my id:chinna.ammi@yahoo.co.in

8 Answers  


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

0 Answers   Ness Technologies,


Explain object spy in qtp.

0 Answers  


What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.

2 Answers  


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

0 Answers  


There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

2 Answers   Livetek,


Categories