Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to enter value to a field in frame
#1
Solved: 11 Years, 3 Months ago
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.

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.
Reply


Messages In This Thread
How to enter value to a field in frame - by srivania - 09-12-2008, 04:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile I am not getting links under a frame deveshbhatt29 1 2,027 05-29-2014, 05:07 PM
Last Post: Ankur
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,504 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed
Question QTP Script for enter data to DB geethu105 2 3,297 02-24-2014, 06:54 PM
Last Post: guin.anirban
  Unable to enter data in web table nistalaramesh 8 10,605 07-13-2012, 09:14 PM
Last Post: nistalaramesh
  How to enter data into textbox which is under the image link. Lakshman 4 5,122 02-23-2012, 12:14 PM
Last Post: inborntester

Forum Jump:


Users browsing this thread: 1 Guest(s)