Answer Posted / nanda
the Two above answers are correct...
there is simple technique to write descriptive
programming..to write DP we use Object Identification dialog
box and Object spy dialog box.
Object Identification dialog boxes uses to know which
properties can identify an object uniquely and Object spy
uses to know values of this property..this technique is
suggested when the application is ready only. If application
is not ready we can write only visible properties, like
text, attachedtext, class.
we can write DP in two ways..by throwing the properties
and their values directly in to script (or) by creating an
object by using description.create method.
for example:
set objtext = description.create
objtext("nativeclass").value = "Edit"
objtext("attachedtext").value = "XXXXX"
this will create a text box object.
browser("sadgd").page("sahdga").webedit(objtext).set "asgfsad"
second method is:
browser("sadgd").page("sahdga").webedit("nativeclass:=Edit","attachedtext:=XXXX").set
"asgfsad"
If any queries..
nanda.dreddy@gmail.com
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between qtp and selenium?
There is an excel file of 1 to 100 sheets how you will iterate through it?
Explain more about the Test Fusion Report of QTP?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
can anyone tell me from where i can download qtp demo or crack version
How to give a call to another action from one action?
Explain qtp(quick test professional)?
what are the utilities and drivers
What is throw object?
How to save your test using quicktest professional?
How to modify object property in qtp ?
what are all the fileds present in object repository?
what is clean sweep?
What are the technics follow in writing VB script?
Object repositories types, which and when to use?