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
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 |
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 |
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
How to do the Mouse Operations in QTP. How to aacess an Image in a web application to save it on my desktop. To my Knwoledge that can be done by mouse right click on the Image and selecting 'Save the Image'option. Or Is there any alternate way to do this..
3.How to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.
i have string "I LIKE INDIA"..how to i get LIKE from the sting..
Why divide a test into three action calls?
What is Reusable component is QTP...Anybody can answer it..Thanks in advance...
recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail
Write a command for setvalue function in a webedit
How to compare source and target database in testing? Can anybody please tell me in detail the procedure how to compare it?
what is meant by automation tool?
How many types of Check Point in QTP
what is the long form of QTP ?