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
Explain the parameter in qtp?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
How often were they executed?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
what r the main attributes of test automation?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
Can launch two instances of qtp on the same machine?
Mention what are the different types of recording modes in qtp? Which will be used when?
what is supply chain management?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
What is expert view in qtp?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.