how to identify an object which is not in the object
repository identification can be done using descriptive
programming.
Answer Posted / sreeprasad
Here is example # 1 with description object.
set EditDesc = Description.Create()
EditDesc("Name").Value = "userName"
EditDesc("Index").Value = "0"
Browser("Welcome: Mercury").Page("Welcome: Mercury").WebEdit
(EditDesc).Set "MyName"
Here is example # 2 with out description object.
Dialog("text:=Login").WinEdit("window id:=3001","attached
text:=Agent.*").Set "john"
Dialog("text:=Login").WinEdit("window id:=2000","attached
text:=Password:").Set "mercury"
Dialog("text:=Login").WinButton("text:=OK").Click
These both method will be used in expert view to identify
object with out object avaialble in object repository
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the syntax to call one script from another?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
QTP script is not working on other's machine..
Is the qtp course will help to create a virtual object?
What is the use of an object spy tool in qtp?
Have you faced any problems with object repository?
How do you open adobe acrobat file in QTP and do some testing on that file ?
Name the properties you would use for identifying a browser and page when using descriptive programming?
Have you used xml check point in your project? How?
What are some test assets and related extensions of qtp?
How many number of actions possible in qtp?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
why text area checkpoints cannot used for web applications
What is the basic concept of qtp?