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

You say it is a bug but developer say it is not a bug then what will you do?

6 Answers   Hewitt, Tech Mahindra,


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


When should u feel that u can stop testing now? The following are few of the common Test Stop criteria:

2 Answers  


What is a quick test professional?

0 Answers  


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  






Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

0 Answers   Bank Of America,


In real time whenever we found bug , after that where you send to that bug. send to T.Lead or Directly Developer. Plz explain me?

2 Answers  


How many types of recording modes in the qtp?

0 Answers  


what is the mediater between qtp and application/project in automation testing?

1 Answers  


somebody please say me why we go for using regular expressions,actions.what is the main and exact use of this in real time applications.real time testers pls answer my question with example if u can

4 Answers  


i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no?

6 Answers   IBM,


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

0 Answers  


Categories