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

Answers were Sorted based on User's Feedback



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

Answer / deepika

n=Browser("BName").Page("PName").WebTable("TName").RowCount
print n
This will display the number of rows in a web table
m=Browser("BName").Page("PName").WebTable.ColumnCount
(Rownumber)
print m
This will displap the number of Columns for that particular
Row
a=Browser("BName").Page("PName").WebTable
("TName").GetCellData(Rownumber,ColNumber)
print a

Is This Answer Correct ?    8 Yes 0 No

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

Answer / 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

More QTP Interview Questions

Which Databases supports for QTP?

3 Answers   CTS,


Is the qtp course will help to create a virtual object?

0 Answers  


Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible

1 Answers   IBM, INCA,


how do you configure QTP AND Test director?

1 Answers   Satyam, TCS, VB,


setroproperty and getroproperty difference

5 Answers   Ordain Solutions,


take one exmple and write on that discriptive programe in qtp?

1 Answers  


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


i need the licence key for QTP V9.5 can anyone help me on getting this?

140 Answers  


How did u write macros?What is the main importance of VB macros in testing environment?

1 Answers  


Question:how many types of repositories in QTP9.2?and explain??

3 Answers  


I am not finding pages and links in object spy on web testing. I am only getting window and winobject. where is the problem? thanks

4 Answers  


in QTP,how to write a descriptive program for "yahoo" or "gmail" Login page

1 Answers  


Categories