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 / ganesh kumar

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

The Above code Displays the name of the Button placed at
2nd row and 3rd column

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is quicktest professional?

546


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3411


What does it mean when a check point is in red color? What do you do?

561


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1662


How to create Reusable and Multiple Actions?

1701






How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3046


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1708


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

594


what is keyword driven testing in qtp?n how is it useful?

1482


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1739


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1856


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1510


Tell me about your project? please help me how to tell about insurance project

1520


I want to do QTP Certification what is the pattern of Question paper.

1737


In what occasion we can specify global sheet and action sheet?

558