(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".
unable to rowcount in web table
|
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
unable to rowcount in web table - by manoj84monu - 06-07-2016, 01:03 PM
RE: unable to rowcount in web table - by Anu1234 - 06-13-2016, 04:46 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Can QTP handle slick grid table in a web page | qtplearner88 | 2 | 4,756 |
10-01-2019, 10:44 AM Last Post: shilpi952 |
|
Fetching values from a web table | qapandit | 7 | 9,877 |
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,973 |
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,464 |
10-17-2013, 09:36 PM Last Post: Parke |
|
Web Table | karraaruna | 2 | 3,626 |
08-28-2013, 04:14 PM Last Post: akhandesh |
Users browsing this thread: