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

How you can find the absolute value of the number in qtp?

514


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1511


How to execute a winrunner script in quicktest professional (qtp)?

509


Explain the types of object repositorys in qtp?

562


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1596






hi nani my doubt is how does qtp process metrix related to software process.

1540


Explain the concept of object repository and how qtp recognises objects?

520


Can we run test with out adding object in object repository? How it is possible?

535


How does qtp identify gui object?

582


What is a recovery scenario?

564


Explain the concept of object repository?

520


In qtp, explain what is qrs file?

579


How many tabs are available to view your test in a test pane and what are they?

555


What are the different types of recovery operation?

543


how will you load the test cases in ddt?

1590