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 are the ordinal identifiers in web page?
What is environment variable in qtp and why to use it?
For which type of project the iterative model is suitable?
How to change the priorities of the recovery scenario properties?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
How do you perform Regreession Testing?
If object is not recognized by qtp but the object is standard object what is your approach?
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
is it possible to add sheets to excel at runtime
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
what testplan contents and what test strategy contents,what is the diff b/w them
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Hi All, How to Compare two strings character by character in QTP
assume i have few url link how will i dynamically call then using descriptive programming?
How does quicktest professional (qtp) identifies the object in the application?