Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting WebTable Count
#1
Not Solved
Hello All,

I am quite new to QTP. The question that I have is, if I have like 100 webtables in a page/frame, and I want to get the total count of these webtable via code, how to do accomplish that?

My goal is to iterate over all the webtables, and for each webtable, I want to print the data (I am just trying to simplify the task for now).


In other words,
Code:
totalWebTables = Browser("").Page("").Frame("").WebTable.GetCount(???)

for i = 1 to totalWebTables

msgbox Browser("").Page("").Frame("").WebTable(i).RowCount
Next

Thanks. Kindly let me know if this doable.

AKapoor
Reply


Messages In This Thread
Getting WebTable Count - by akapoor - 03-21-2011, 04:21 AM
RE: Getting WebTable Count - by basanth27 - 03-21-2011, 06:41 AM
RE: Getting WebTable Count - by akapoor - 03-21-2011, 09:06 AM
RE: Getting WebTable Count - by basanth27 - 03-21-2011, 11:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WebTable..Row and Column Count Brian T. 10 72,189 03-16-2012, 04:45 PM
Last Post: Teju
  Newbie: How do i count through a webtable to find an entry? jove1776 5 4,449 08-27-2010, 08:05 PM
Last Post: supputuri
  Diff. between page checkpoint link count and childobj count anemuday 0 2,165 07-20-2008, 10:11 PM
Last Post: anemuday

Forum Jump:


Users browsing this thread: 1 Guest(s)