In Descriptive programing if i use this below code will it
work for login window or flight Res Window. Shud i add the
properties like attached text=login and text=Agent Name in
the object repository and define a new object first. Pls
tell me the procedure in clear inorder to execute this
script.
Dialog("title:=Login").WinEdit("attached text:=Agent
Name:").set"agent123"
Dialog("title:=Login").WinEdit("attached
text:=Password:").set"mercury"
Dialog("attached text:=Login").winbutton("text:=OK").click

Answer Posted / praveen

Please try with the below answer

dialog("Login").Activate
Dialog("title:=Login").WinEdit("attached text:=Agent
Name:").set"agent123"
Dialog("title:=Login").WinEdit("attached
text:=Password:").set"mercury"
Dialog("title:=Login").winbutton
("text:=OK","regexpwndtitle:=OK").click

u dont have attached text property for Dialog in flight
reservation.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1492


What is output value? How many types of output values are there in qtp?

580


What is the use of text output value in quicktest professional?

515


Does quicktest professional is unicode compatible?

528


is it possible to add sheets to excel at runtime

3236






How can I import environment from a file on disk?

540


how to post xml data from QTP scripts to any application?

1506


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1398


Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..

1523


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2070


How to find Operating system information using QTP script?

578


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

618


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5892


What is the basic concept of qtp?

580


Can any body please tell me the steps of keyword driven framework of QTP.

1570