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

Answers were Sorted based on User's Feedback



if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / 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

if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / narendra

Answer for 2nd question is
Browser().page().WebTable.GetCelldata(2,3)

Is This Answer Correct ?    17 Yes 4 No

if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / sada

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.

Is This Answer Correct ?    3 Yes 0 No

if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / saravanaraja

The Below code is working for a Grid that contain Many rows.

Here .* indicate Page Title. Index number indicate 5 th row
Delete Link.

Browser("Title:=.*").Page(("Title:=.*").Link("html id:= ;
Index=4).Click

Is This Answer Correct ?    4 Yes 3 No

if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / 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

if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column wh..

Answer / ashish srivastava

For Ques 1
Browser().page().webtable().childitem
(2,3,"WebButton",0).Click

For Ques 2
strname=Browser().page().webtable().GetCellData(2,3)
msgbox strname

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the 3 main stages involved in testing with qtp?

0 Answers  


w is fragmentation and paging

1 Answers   MBT,


How many types of recording facility are available in quicktest professional?

0 Answers  


Describe the process for writing text check point for a web application?

2 Answers   ssinformatics,


Explain in brief about the quicktest professional automation object model?

0 Answers  






Did QTP prove efficient for your project? Yes or No, explain?

0 Answers  


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

0 Answers   Zensar,


how to test Web application using QTP software

4 Answers   BITS,


Hello Everyone, I have a problem. QTP is capturing no action on a particular page in the application that I am trying to automate. But on the same side its working fine on other pages of the same application. Can someone please help me understand the reason behind this inconsistency.

1 Answers  


what is the main process in QTP?

3 Answers   Ordain Solutions,


What is the virtual object?

0 Answers  


results.xls file is automatically generated while running the script in QTP.But it is showing error to open the file

1 Answers  


Categories