Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie: How do i count through a webtable to find an entry?
#1
Solved: 10 Years, 9 Months ago
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:


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.
Reply


Messages In This Thread
Newbie: How do i count through a webtable to find an entry? - by jove1776 - 08-24-2010, 08:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Excelsheet data entry Anshu 0 1,511 07-11-2017, 07:41 PM
Last Post: Anshu
  Entry Certification diya 3 2,602 12-04-2012, 05:42 AM
Last Post: diya
  WebTable..Row and Column Count Brian T. 10 72,139 03-16-2012, 04:45 PM
Last Post: Teju
Toungue How to figure out how to use my count to correctly find the requiered link mv8167 2 2,625 08-24-2011, 09:39 PM
Last Post: mv8167
  Getting WebTable Count akapoor 3 4,642 03-21-2011, 11:33 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)