There is a table with 4 columns and 10 rows, how to write the
script to display the first column records using qtp? can
anybody help me with script?

Answer Posted / kishan

rcnt=Browser().Page().webTable().rowcount
ccnt=Browser().Page().webTable().columncount(2)


for i=1 to rcnt
print Browser().page().webtable().getcellData(i,1)
next

(or)

for i=1 to rcnt
set obj=Browser().page().webtable().childItem
(i,1,"webElement",0)
print obj.getROproperty("text")
next

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default object synchronization timeout in qtp?

651


How to analyzing the checpoint results?

525


Have you used xml check point in your project?

556


when a test case is written how u test using qtp

1655


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1254






What is the architecture of your project? Can any one answer for this question plz........

1413


Explain runtime dynamic settings?

2028


What is the difference between call to existing action and copy of an action?

605


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1359


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1587


How to break the object spy ?

664


How many types of actions are there in quicktest professional?

514


What Folder Structure following in Keyword Driven Frame work?

2289


What is keyword view?

566