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
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
How to use checkpoints in qtp ?
How to export quicktest professional (qtp) results to an .xls file?
what could go wrong with test automation?
Explain object spy in qtp.
Problem with XML checkpoint in QTP ?
How to suppress warnings from the test results page?
when will you do debug your script? and explain that process?
how did u use automating testing tools in ur job?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
When Recovery scenario actually starts while testing the application?
How does qtp identify the object in the application?
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?
How many add-ins comes by default with quicktest professional?
Is virtual object supported in low level recording mode?