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

Tell me about qtp?

0 Answers  


What is descriptive Programming in qtp.

5 Answers  


How can we close all webbrowsers which are opened in out desktop?

3 Answers  


Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone

1 Answers  


What are the option you can use to synchronize your test?

2 Answers  






What are the two types of repositories available, explain them?

0 Answers  


What is the difference between client server application and web based application?

3 Answers   IBM,


distinguish between old version and new version QTP features.

0 Answers   CTA,


Hi PLZ explain User Defined Functions in QTP with eample?

2 Answers   Ordain Solutions,


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

0 Answers  


How we can test a Frame in a web page?

1 Answers   eMids,


Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers

1 Answers  


Categories