02-06-2010, 12:15 AM
(This post was last modified: 02-06-2010, 12:20 AM by rameshrise3.)
Hi,
Stand Checkpoint on Webtable can be implemented but with this, you cant compare values between 2 tables,
for your scenario, get all the required cell values from both tables and compare them
Ex:
Stand Checkpoint on Webtable can be implemented but with this, you cant compare values between 2 tables,
for your scenario, get all the required cell values from both tables and compare them
Ex:
Code:
For
Table1value = Browser("...").Page("...").WebTable("Table1").GetCellData(i, j)
Table2value = Browser("...").Page("...").WebTable("Table2").GetCellData(i, j)
if Trim(Table1value) = Trim(Table2value) Then[hr]
Please find the full code below,
Rcnt1 = Browser("...").Page("...").WebTable("Table1").Rowcount
Rcnt2 = Browser("...").Page("...").WebTable("Table2").Rowcount
For i = 2 to Rcnt1
for j= 2 to Rcnt2
Table1value = Browser("...").Page("...").WebTable("Table1").GetCellData(i, j)
Table2value = Browser("...").Page("...").WebTable("Table2").GetCellData(i, j)
if Trim(Table1value) = Trim(Table2value) Then
Reporter.Reportevent 0, "Values Check", ".................."
Else
Reporter.Reportevent 1, "Values Check", ".................."
End If
Next
Next