07-08-2010, 09:40 PM
Hello,
I am trying to read values in edit boxes that are in a webtable.
There are 8 rows and 2 columns in the table, and each cell has an edit box. If I write a look to go from 1 to 8. The loop is looking at each row, instead of going through entire column.
My question is, how can I loop through the each column in a table before looping through the next column. Please see code below and the attachment.
Thanks,
Raj
I am trying to read values in edit boxes that are in a webtable.
There are 8 rows and 2 columns in the table, and each cell has an edit box. If I write a look to go from 1 to 8. The loop is looking at each row, instead of going through entire column.
My question is, how can I loop through the each column in a table before looping through the next column. Please see code below and the attachment.
Thanks,
Raj
Code:
Set a = Browser("Asset Price Verification").Page("Asset Price Verification").WebTable("Tiered Dealer Dispersion")
RowCount = a.GetROProperty("rows")
ColumnCount = a.GetROProperty("Cols")
Set oEdit = Description.Create()
oEdit("micclass").value = "WebEdit"
set Childobj = Browser("Asset Price Verification").Page("Asset Price Verification").WebTable("Tiered Dealer Dispersion").ChildObjects(oEdit)
For j = 1 to RowCount
For i = 1 to ColumnCount
Next
eValue = Childobj(j).GetRoProperty("value")
IF eValue <>"" THEN
Reporter.ReportEvent 0, "All the data has be populated "&eValue, "Successful"
ELSE
Reporter.ReportEvent 1, "All the data has NOT been populated "&eValue, "FAIL"
END IF
Next
Next