please tell me how to identify the index of the link in the
web table .links are not constant.example i want to click
the link in the inbox ,search the item and click the
partcular mail.(mail links count is not constant)



please tell me how to identify the index of the link in the web table .links are not constant.exam..

Answer / amarendra kothuru

If you want to click a link which exist in Webtable Cell,
Use "ChildItem" event to retrieve the child Link objects in
that cell.

Broswer("Bname").Page("PTitle").WebTable("WTName").ChildItem
(RowNumber,ColumnNumber,"Link",IndexvalueOfTheLink)
Link Index value depends on the Position of the link in
that cell.

'If the cell has only one Link, then index value will be
Zero. i.e.
Set objLink = Broswer("Bname").Page("PTitle").WebTable
("WTName").ChildItem(1,2,"Link",0)
objLink.Click

'If Cell has three links and if u want to click on Second
link, then pass index value as 1(one). i.e.
Set objLink = Broswer("Bname").Page("PTitle").WebTable
("WTName").ChildItem(1,2,"Link",1)
objLink.Click -- so that it will click on second link in
the specified web table cell.

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More QTP Interview Questions

For what purpose to we use object repository in a application?also explain usage of obj.repository?

3 Answers  


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

0 Answers  


How to analyzing Test Results using QTP?

1 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  


How many types of recording facility are available in quicktest professional (qtp)?

0 Answers  






What r types of parametarizations?

6 Answers  


WHAT IS ENVIRONMENT VARIABLES?

7 Answers   AZTEC, CTS, Ready Test Go,


What is the Difference between current version of QTP and QTP 8.2. Pls kidly Anybody let me know. Thanks in advance.

1 Answers   TCS,


wt is frame work wt r d different types of frame works used in ur company

1 Answers   Infotech,


Explain the concept of Output values in Quick Test Professional?

1 Answers   Crea,


What is iteration? How it is related to Test Results in QTP

3 Answers   Virinchi Technologies,


What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.

1 Answers  


Categories