06-07-2016, 01:03 PM
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".
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".