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

Through array we can execute the testcase how ? give me example

1402


Explain how you can find length of array in qtp?

601


What is the recovery scenario in qtp?

576


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1607


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

533






How to get popup error message.

1030


hi nani my doubt is how does qtp process metrix related to software process.

1553


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1547


How many types of object repository in qtp?

609


How do we analyze the checkpoint results?

587


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1287


What is the extension of qtp local repository?

576


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

1461


What are the types of object repository in qtp?

569


How to record a qtp script ?

562