03-21-2011, 04:21 AM
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,
Thanks. Kindly let me know if this doable.
AKapoor
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