Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify dynamic webtable as unique in QTP?
#2
Not Solved
Two tables embedded in 1 is not clear for me, can u brief me that point?
Here is answer for how much i understood your question, lemme know if the answer is not clear.
You can get the total number of rows and columns for dynamic table as:
Say for example, if the table has the header as "header" which has the unknown number rows, then
Code:
'Get total number of columns first
cCount=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getColumnCount
For i=0 To cCount-1
'Get total number of rows
rCount=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getRowCount(i)
' now you can get the cell data as:
For j=0 To rCount-1
data=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getCellData(i,j)
' Use the data
msgbox data
Reply


Messages In This Thread
RE: How to identify dynamic webtable as unique in QTP? - by KavitaPriyaCR - 10-06-2010, 10:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify a Dynamic WebElement? PreethiJoshi 1 5,212 05-03-2018, 04:08 PM
Last Post: Ankur
  Link in a webtable in a webtable Soulwalker 1 2,718 07-19-2017, 01:44 PM
Last Post: Ankur
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,669 06-13-2014, 04:27 PM
Last Post: vinod123
  QTP Unable to differentiate WebTable in Application - Solved EnthusiasticLearner 3 6,046 12-27-2013, 12:26 PM
Last Post: EnthusiasticLearner
  How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? bell.ramesh 1 4,044 08-20-2012, 11:07 AM
Last Post: Victor~

Forum Jump:


Users browsing this thread: 1 Guest(s)