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
How to release all resources file from the QTP?
Connect to QC using AOM.
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
wht type of User defined functions or Java Releated functions do we write in VB scripting
What is the difference between byref and byval in qtp?
What are main panes available in qtp test browser?
How do Parameterization and Data-Driving relate to each other in QTP?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
What is quick test pro? What is a quick test professional?
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
Describe synchronization point.
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
what is the difference between the modular framework and datadriven frame work
What will be happen if i load object repository at run time, but it has already associated.
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me