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

if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1880


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1965


What are the different attributes used with regular expression?

782


How to delete an object from the object repository?

824


Explain the views in the QTP GUI?

807


What are the factors on which script execution time is dependent?

828


How will you handle java tree in qtp?

845


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1931


What is ‘object spy’ and what is the function of object spy in qtp?

785


Name the different types of recording modes?

796


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1699


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

774


What do you mean by iteration?

895


Explain the types of properties that quick test learns while recording?

797


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

2702