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
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
What are the advantages of parameterization ?
What is the standard timing delay for web based application in qtp?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
Explain how qtp identifies objects?
We stored into the objects OR and then write the scripting
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
Explain sub procedure of vbscript.
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
Can we record using all the modes in a single script? Explanation with example is appreciated
What do you mean by checkpoints in qtp?
What are the factors on which script execution time is dependent?
Is QTP supports Unix. If yes, then how the test automation is done?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief