Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to rowcount in web table
#1
Not Solved
Hi,

I have add object in object repository but qtp not highlighted object on the page.Then i have created object for web table as below.There are multiple table on the page. Please guide me.


Code for count number of rows in table.

Set opage= Browser("NuWave APERIOsuite").Page("NuWave APERIOsuite")
Set desobj = Description.Create()
desobj("micclass").Value="WebTable"
desobj("html tag").Value="Table"
desobj("index").Value="3"
Set Tcount=opage.ChildObjects(desobj)
msgbox Tcount.RowCount



After run the code a error message pop up as below:

The test run cannot continue due to an unrecoverable error.

Object doesn't support this property or method: 'Tcount.RowCount'

Line (74): "msgbox Tcount.RowCount".
Reply
#2
Not Solved
(06-07-2016, 01:03 PM)Hi Manoj, Wrote:    Try below code
Set objPage = Browser("NuWave APERIOsuite").Page("NuWave APERIOsuite")
Set desobj= Description.Create
desobj("micclass").Value="WebTable"
desobj("html tag").Value="Table"
desobj("index").Value="3"
Set obj = objPage.ChildObjects(desobj)
'Verify whether .count is providing the required value 1, else alter your Descriptive pgmg values
obj.Count
'If count is returned as 1, they try for RowCount
Msgbox obj(0).RowCount
'To retrieve Column count of the perticular row, try
obj(0).ColumnCount(1)

Note - Couldn't takeout bold
 manoj84monuHi,

I have add object in object repository but qtp not highlighted object on the page.Then i have created object for web table as below.There are multiple table on the page. Please guide me.


Code for count number of rows in table.

Set opage= Browser("NuWave APERIOsuite").Page("NuWave APERIOsuite")
Set desobj = Description.Create()
desobj("micclass").Value="WebTable"
desobj("html tag").Value="Table"
desobj("index").Value="3"
Set Tcount=opage.ChildObjects(desobj)
msgbox Tcount.RowCount



After run the code a error message pop up as below:

The test run cannot continue due to an unrecoverable error.

Object doesn't support this property or method: 'Tcount.RowCount'

Line (74): "msgbox Tcount.RowCount".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,261 10-01-2019, 10:44 AM
Last Post: shilpi952
  Fetching values from a web table qapandit 7 8,575 05-30-2014, 02:32 PM
Last Post: nistalaramesh
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,602 11-13-2013, 10:24 PM
Last Post: sai rajesh
  How to find which value is having link and which are all not having in Web table. Sivakumar2186@gmail.com 2 3,167 10-17-2013, 09:36 PM
Last Post: Parke
  Web Table karraaruna 2 3,331 08-28-2013, 04:14 PM
Last Post: akhandesh

Forum Jump:


Users browsing this thread: 1 Guest(s)