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
Through array we can execute the testcase how ? give me example
Explain how you can find length of array in qtp?
What is the recovery scenario in qtp?
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
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
How to get popup error message.
hi nani my doubt is how does qtp process metrix related to software process.
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
How many types of object repository in qtp?
How do we analyze the checkpoint results?
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
What is the extension of qtp local repository?
how can i pass a "cript"as a parameter in to a function
What are the types of object repository in qtp?
How to record a qtp script ?