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

what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


What exactly is the difference among all the three recording modes.

2 Answers   TCS,


How will you handle application crash using recovery scenario manager(step by step process)?

1 Answers  


Why do you choose only QTP for your project automation among remaining tools like Rational robot and silk test?

2 Answers   CTS,


Mention what are the different types of recording modes in qtp? Which will be used when?

0 Answers  


If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened. What would be Descriptive programming for this in QTP using VB Script..??? Please send your answers.

6 Answers  


In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain

5 Answers   Polaris,


Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com

1 Answers  


When testing a web application, the url for each page changes, so using QTP how do u handle this scenario. If anyone knows please answer in detail about the whole procedure. Thanks a lot.

3 Answers  


I am using "QTP 9.0" in my system, need to install java add-ins to test the java based applications, please prvide information from where i can get those java add-ins for QTP 9.0

0 Answers   Infosys,


I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?

4 Answers   IBM,


Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


Categories