if there is a web table of having row and colmns.a button is
placed at 2nd row's 3rd column which is worked for both edit
and delete..how to write script for the button to test both
operation on the web table using desriptive programing..
plz help me on script wheather using getroproperty

Q2)what is the command for taking valiue from a web table in qtp

Answer Posted / naina

Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.

Ex:
set objButton=Browser().page().frame().webtable().childitem
(2,3,"WebButton",0)
strname=objButton.getroproperty("name")
msgbox strname
objButton.Set "Example" //For Webedit opertaion
objButton.Click //For Delete opertaion

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are parameterizing tests?

551


Explain how you can delete excel file in qtp?

592


What is checking bitmaps?

556


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1931


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1407






What are the types of object repositories? Which one is you are using?

632


Explain the check points in quicktest professional (qtp)?

560


What is the meaning Work bench?

1764


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1380


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3442


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2399


What is TOM in QTP?

1806


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1523


How to use checkpoints in qtp ?

586


Can launch two instances of qtp on the same machine?

583