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


Please Help Members By Posting Answers For Below Questions

tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1517


Which scripting language used by quicktest professional?

524


Analyzing the checpoint results?

595


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2262


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2794






What are benefits of qtp?

575


What is use of object spy?

605


How to handle the exceptions using the recovery scenario manager in qtp?

562


How will you compare keyword and expert view?

520


Give me some real time point of way where exactly we can conduct audits?

1495


What are the types of environment variables in qtp?

540


Discuss quicktest professional (qtp) environment?

570


Can we run multiple QTP scripts one after the other without manual intervention? How?

588


when to start the automation?

1471


What is quick test pro?

582