how can we perform web datatable operations on webpages(Like
rowcount,col count,cell data)?

Answer Posted / ram.polavarapu

r=browser("").page("").webtable("").RowCount
print r
'this will display the number of rows in webtable
c=browser("").page("").webtable("").ColumnCount
print c
'this will print the number of column in webtable
for i=1 to r
for j-1 to c
a=browser("").page("").webtable("").GetCellData(i,j)
print a
this will display the all data in the web table

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1708


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1899


How to give a call to another action from one action?

855


how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)

1624


What is the file extension of the code file in qtp?

770


Write a script to verify font style and color of a windows object using descriptive programming

1087


explain how to write vb script in qtp?when will you write own script?

2068


how to write xml output check point bu useing descriptive programing .means without useing output check point

1864


What is Port testing. Whhen will you perform?

1705


How is a Step generator used in UFT?

897


How to creating an output value using quicktest professional (qtp)?

777


Key word driven framework

1910


How will you find the current time of the remote machine using QTP script?

812


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2619


What is an expert view and keyword view?

806