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
What ate the Technologies supported by QTP?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What is data driver in qtp? Where we use it?
What are the views available in qtp?
How to use actions in qtp ?
terminal services client
What are the properties you would use for identifying a browser and page when using descriptive programming?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?
How to explain a banking project in interview as a test engineer???
How does qtp recognize objects in aut?
Without using gui map editor we can recognize the application in winrunner ?
Explain the types of object repository?
How can you give wait up to 10 seconds in qtp?
how to write xml output check point bu useing descriptive programing .means without useing output check point