Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comparision Of whole 1 webtable to another
#2
Not Solved
You can try the following code to compare two different web tables:-

Code:
Dim TableMatched = True

Set Table1 = Browser("abcd").Page("efgh").WebTable("xyz")

Set Table2 = Browser("abcd").Page("efgh").WebTable("pqr")



       For rowcntr=1 to Table1.RowCount

                  For colcntr=1 to Table1.ColumnCount

                           If Table1.getCellData(rowcntr,colcntr) = Table2.getCellData(rowcntr,colcntr) Then

                                     TableMatched = TableMatched AND True

                            Else

                                     TableMatched = TableMatched AND False

                           End If

                  Next

       Next


if TableMatched Then

        Print "Table Matched"

Else

        Print "Table Not Matched"

End If
Reply


Messages In This Thread
RE: Comparision Of whole 1 webtable to another - by BadrinarayananR - 10-08-2013, 12:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Genaralised code for checking the comparision of two xml files having child nodes. Ganta 4 3,623 11-18-2009, 07:26 PM
Last Post: Ganta

Forum Jump:


Users browsing this thread: 3 Guest(s)