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)

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the check points in quicktest professional (qtp)?

668


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1733


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

698


Why qtp the best testing tool?

650


Discuss quicktest professional (qtp) environment?

665






Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

1863


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1544


How many ways we can parameterize data in quicktest professional?

652


how can i pass a "cript"as a parameter in to a function

1543


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1504


Object repositories types, which and when to use?

692


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1417


What are the general steps involved in the data driven framework?

638


Where we can use the analog mode and where we can use the low – level mode?

655


What is the XML file architecture ?

1660