How to enter value to a field in frame - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to enter value to a field in frame (/Thread-How-to-enter-value-to-a-field-in-frame) |
How to enter value to a field in frame - srivania - 09-12-2008 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" == i am attaching the sample also. RE: How to enter value to a field in frame - Ankur - 09-12-2008 It's clearly evident, you need to add more properties:=value pair to uniquely identify the Descriptive programming statements. RE: How to enter value to a field in frame - srivania - 09-12-2008 Ok. Thanks Ankur for the Reply. I will add the properties to uniquely identify the objects |