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
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
How often were they executed?
what type of run time errors you get while you ar edoing rpg program?
What are the types of object repository?
How will you test a keyboard?
What is smart identification in QTP?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
What environment does qtp run in?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What is expert view and keyword view?
How many types of recording facility are available in quicktest professional?
Explain the concept of object repository and how qtp recognises objects?
How to delete an object from the object repository?
What is Associate Repository in QTP 9.2 ?
Is QTP supports Unix. If yes, then how the test automation is done?