Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the ordinal identifiers in web page?

1088


What is environment variable in qtp and why to use it?

957


For which type of project the iterative model is suitable?

1731


How to change the priorities of the recovery scenario properties?

1123


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1983


How do you perform Regreession Testing?

1929


If object is not recognized by qtp but the object is standard object what is your approach?

973


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?

1796


is it possible to add sheets to excel at runtime

3957


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

2149


what testplan contents and what test strategy contents,what is the diff b/w them

2108


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?

4473


Hi All, How to Compare two strings character by character in QTP

1453


assume i have few url link how will i dynamically call then using descriptive programming?

1969


How does quicktest professional (qtp) identifies the object in the application?

989