Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get values of childItem of a webtable
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Sreekanth,

Correct me if i am wrong.

As per QTP help topic :-Identifying an Object Using the Index Property
index ares assigned as per Class i.e object Type
so if you have four objects two webedit and two webbutton in single cell
the index will be
first webedit index =0
Second webedit index =1

first webElement index =0
Second webElement index =1

as per you thinking it would be like

first webElement index =0
Second webElement index =1
first webedit index =2
Second webedit index =3
which is false as per QTP help



so need not worry even if one webedit is there it will be of index 0,

other type of objects will also start from zero.

Thanks
Help Referance

While learning an object, QuickTest can assign a value to the test object's Index property to uniquely identify the object. The value is based on the order in which the object appears within the source code. The first occurrence is 0.

"Index property values are object-specific" . Therefore, if you use Index:=3 to describe a WebEdit test object, QuickTest searches for the fourth WebEdit object in the page. However, if you use Index:=3 to describe a WebElement object, QuickTest searches for the fourth Web object on the page—regardless of the type—because the WebElement object applies to all Web objects.
Reply


Messages In This Thread
RE: how to get values of childItem of a webtable - by nil - 12-09-2009, 05:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Link in a webtable in a webtable Soulwalker 1 2,845 07-19-2017, 01:44 PM
Last Post: Ankur
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,888 06-13-2014, 04:27 PM
Last Post: vinod123
  Unable to read numeric values from WebTable into Datatable Akhila 2 4,715 11-26-2013, 03:43 PM
Last Post: Akhila
  Webtable().GetCellData() Returns hidden values of Cells ssvali 4 5,977 06-07-2013, 08:37 PM
Last Post: kawsar
  How to compare local sheet values with run time data table values? test71 2 8,445 03-14-2008, 07:09 PM
Last Post: test71

Forum Jump:


Users browsing this thread: 4 Guest(s)