09-12-2008, 04:18 PM
Hi,
Can anyone please tell how to enter value to a field available in a frame.
Date of Flight is available in Flight Schedule frame.
I tried in this way, but this is not working. i think somewhere i am doing wrong. can anyone please correct me.
----
When i am trying like this,
i am getting the following error message:
The "[ WinEdit ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.
Line (17):
--
My Program logic is very simple. Open flight sample, enter values to the fields and close the sample.
==
i am attaching the sample also.
Can anyone please tell how to enter value to a field available in a frame.
Date of Flight is available in Flight Schedule frame.
Code:
Window("Title:=Flight Reservation").WinEdit("AttachedText:=Flight Schedule:").WinObject("AttachedText:=Date of Flight:").Type "121212"
I tried in this way, but this is not working. i think somewhere i am doing wrong. can anyone please correct me.
----
When i am trying like this,
Code:
Window("Title:=Flight Reservation").WinEdit("AttachedText:=Date of Flight:").Type "121212"
i am getting the following error message:
The "[ WinEdit ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.
Line (17):
Code:
"Window("Title:=Flight Reservation").WinEdit("AttachedText:=Date of Flight:").Type "121212"".
--
My Program logic is very simple. Open flight sample, enter values to the fields and close the sample.
Code:
Systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","","open"
With Window("Title:=Login")
.WinEdit("AttachedText:=Agent Name:").Set "jojo"
.WinEdit("AttachedText:=Password:").Set "mercury"
.winbutton("Text:=OK").Click
End with
Window("Title:=Flight Reservation").Activate
Window("Title:=Flight Reservation").Minimize
Window("Title:=Flight Reservation").Restore
Window("Title:=Flight Reservation").WinEdit("AttachedText:=Date of Flight:").Type "121212"
==
i am attaching the sample also.