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
How to call a test from another test?
how to test Web application using QTP software
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
Explain hybrid framework with advantages and disadvantages?
How many lines of code in each script of QTP?
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
Define Environment Variable in UFT and its uses?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
What are the different ways to invoke an application using QTP?
How to export quicktest professional (qtp) results to an .xls file?
What test you perform mostly? Regression or retesting in your testing process?
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.