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
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
What are the various automation frameworks available in qtp?
can u explain relative path architecture framework in qtp?
hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....
How you can decide which type of object repository you have to use?
How to handle dynamic objects in quicktest professional (qtp)?
What are advantages of test automation?
How to test the login page in different ways in automation testing and i need code?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
What is throw Object?
Your roles and responsibilities and daily tasks? (As automation tester)
Can we run test with out adding object in object repository? How it is possible?
How can i check items sorted or not in a weblist ? Give me the script for this...
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .