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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1920


What are the different types of recording modes in qtp? Which will be used when?

800


What is CMMP and CMMH?

915


images are dynamically changes how to compare two images with out using the bitmap

2199


Define Environment Variable in UFT and its uses?

807


What is throw Object?

1780


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

2049


What is QTP and the use of QTP in TD?

812


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1501


How to recognise the webelement and verifying that webelement is enabled?

1900


explain keyword driven framework with banking domain?

1769


Is QTP supports Unix. If yes, then how the test automation is done?

1959


Explain features of the latest version of qtp/ uft 12.1?

830


What is the parameterization?

775


How many types of recording facility are available in quicktest professional?

835