how to identify an object which is not in the object

repository identification can be done using descriptive

programming.

Answers were Sorted based on User's Feedback



how to identify an object which is not in the object repository identification can be done using ..

Answer / 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

how to identify an object which is not in the object repository identification can be done using ..

Answer / sagar kuamr sutar

Hi sreeprasad u r absolutely correct. But i want you to
update few more things. Please tell me if there is a web
browser and suppose take a gmail or yahoo mail user id and
password and signin button and forget password. I want
these four to identify using descriptive programming. Can u
please solve this. And send to my mail id:
sagar.iacr@gmail.com

If you have any descriptive programming documents can u
send it to my id please.

Thanks in advance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

In qtp, how you can use xpath to identify objects?

0 Answers  


how to know no.of mails in our g mail by using vb-script

0 Answers   HP, Thinking Hats,


Define Canvas view of UFT?

0 Answers  


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  






I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?

0 Answers  


What kind of errors can b handled in QTP in real time scenario?

2 Answers   AZTEC,


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

0 Answers  


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


Error handling

3 Answers   Wipro,


How to pass a variable in Dos Command using QTP? Eg: Dim path1, path2 path1 = "C:\Test\sample1.doc" path2 = "C:\Test\sample2.doc" How can we pass these path1 and path2 inside the "copy" dos command? I tried like this. this is not working. oShell.run "cmd /K copy" &path1 &path2

1 Answers  


Tell me few important difference Between QTP and WinRunner?

9 Answers   TCS,


Categories