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

what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


Hi All, How to Compare two strings character by character in QTP

0 Answers  


1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?

1 Answers   Satyam,


What is XML checkpoint in QTP. How we can use in Web Based application

2 Answers   LinkEdge,


can we install qtp in windows vista

2 Answers  






We need to verify the user name & password in for the user validation. But we don't want to use the parameterization/ loop for user name and password. What is the way in scripting so that user & password will generate automatically.

11 Answers   Tech Mahindra,


What is checkpoints for qtp?

0 Answers  


Why is Client side image is preferred over server side image?

0 Answers  


what is QTP batch testing tool?

2 Answers  


What are the types of Object Repository’s in QTP?

2 Answers   Crea,


Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value

1 Answers   TCS,


what are the mandatory properties for a tex boxc (scenario?)

0 Answers  


Categories