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
Explain the check points in quicktest professional (qtp)?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Why qtp the best testing tool?
Discuss quicktest professional (qtp) environment?
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)
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?)
How many ways we can parameterize data in quicktest professional?
how can i pass a "cript"as a parameter in to a function
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
Object repositories types, which and when to use?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
What are the general steps involved in the data driven framework?
Where we can use the analog mode and where we can use the low – level mode?
What is the XML file architecture ?