ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories >> Software >> Testing >> Automation-Testing >> QTP
 
 
 
Question
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)
 Question Submitted By :: Softwaretester4u
I also faced this Question!!     Rank Answer Posted By  
 
Answer
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.
 
0
Amarendra Kothuru
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com