Retrive Web Table

How to retrive web table to QTP?

Questions by aravindsami

Showing Answers 1 - 3 of 3 Answers

calvin_29

  • Sep 27th, 2010
 

First you should select some text in the required webtable.
---> then open object spy and click on that hand icon
---> now select the required text in that webtable
---> here a dialog box opens. here u should carefully select the required table from

This dialog box (default selection is the text which is selected by object spy)
---> important point in this answer is u should select (required) webtable icon in

The dialog box ONLY. otherwise u won't get the required table.
----> send feedback

  Was this answer useful?  Yes

gsrmohan

  • Dec 9th, 2010
 

row=Browser("browser").page("page").webtable("table").getroproperty("rows")
    
cols=Browser("browser").page("page").webtable("table").getroproperty("cols")
         
for i=0 to row-1
              
for j=0 to col-1
                   
val=Browser("browser").page("page").webtable
                   
("table").getcelldata(i,j)
              
next
         
next

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions