Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to increment the Index number of table.
#1
Not Solved
Hi all,
Good Afternoon.
I am having how to increment the index number for a web table.
i used following code, but it is showing only first table values.
for all table names are same.

Code:
If Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("From").Exist(50) Then
If Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight").Exist(50) Then
        l = 6
Do Until Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight").SetTOProperty("index", l)
Set Tblobj = Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight")
     r_cnt = Tblobj.RowCount
            col = 2
        For i = 1 to r_cnt
            c_cnt = Tblobj.ColumnCount(i)
                         For j = 1 to c_cnt
                              a_celldata = Tblobj.GetCellData(i,j)
                             Next
                  Next
l = l + 1
Loop

Thanks & Regards,
Ranjit Kumar
Reply


Messages In This Thread
How to increment the Index number of table. - by branjitk - 07-06-2012, 03:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to click on the WebButton with specified Index srach84 2 4,291 03-31-2015, 04:36 AM
Last Post: srach84
  QTP is not identifying table with column names property but its identifing with index Anuradha B 1 2,994 02-12-2015, 04:00 PM
Last Post: Kirill
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,785 11-13-2013, 10:24 PM
Last Post: sai rajesh
  QTP recognizing every JavaEdit as "VTextField" having different index values. K Gaurav Varshney 1 2,392 10-29-2012, 11:51 AM
Last Post: krr
  index identifier falvi 4 3,559 05-23-2012, 12:08 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)