08-24-2010, 08:26 PM
I need to find an entry in a web table but I am new to QTP and not sure how to do this. I have done the following:
But I really not sure how to do this, I am complete newbie to vbscripting too.
Code:
Dim test1
Dim RCount
Dim CCount
Dim fail
fail = "FAIL"
RCount = 1
CCount = 0
For RCount = 1 to RCount = 16
For CCount = 0 to 16
test1 = Browser("Test").Page("TEST PAGE").Frame("mainFrame").WebTable("OrderTable").getcelldata(Rcount,CCount)
If test1 = " 10337893" Then
msgbox test1
End If
CCount = Ccount +1
If test1 <> "10337893" Then
msgbox fail
RCount = RCount +1
End If
next
next
But I really not sure how to do this, I am complete newbie to vbscripting too.