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 is the difference between window command and dialog command

1 Answers  


what is the difference between link and hyperlink?

10 Answers   Infosys,


What is the main difference between desriptive programming and generic functions

2 Answers   HCL,


can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance

2 Answers  


what is Business Process Testing plz explain?

7 Answers   iFlex,






How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?

1 Answers  


How the smart identification is used in real time?Please explain with an example

0 Answers   Wipro,


What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

0 Answers  


wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?

2 Answers   Datamatics,


1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible

0 Answers  


What is object identification?

8 Answers   Wipro,


Categories